本文整理汇总了Python中ctapipe.visualization.CameraDisplay.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CameraDisplay.__init__方法的具体用法?Python CameraDisplay.__init__怎么用?Python CameraDisplay.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ctapipe.visualization.CameraDisplay
的用法示例。
在下文中一共展示了CameraDisplay.__init__方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from ctapipe.visualization import CameraDisplay [as 别名]
# 或者: from ctapipe.visualization.CameraDisplay import __init__ [as 别名]
def __init__(self, waveform_data, geometry,
camera_axis, waveform_axis_list, waveform_axis_ylabel):
self.__waveform_data = None
self.__waveform_axis_list = None
self.__integration_window = None
self.camera_axis = camera_axis
self.waveform_axis_list = []
self.waveform_title_list = []
self.waveform_window_list = []
self.waveforms = []
self.pixel_switch_num = 0
self.colors = itertools.cycle(['r', 'b', 'c', 'm', 'y', 'k', 'w', 'g'])
self.current_color = 'r'
self.active_pixels = []
self.active_pixel_patches = []
self.active_pixel_labels = []
self.window_start = None
self.window_end = None
CameraDisplay.__init__(self, geometry, ax=camera_axis)
self._active_pixel.set_linewidth(1.5)
self.geom = geometry
self.waveform_yaxis_label = waveform_axis_ylabel
self.waveform_data = waveform_data
self.waveform_axis_list = waveform_axis_list
geometry_text = "Geometry = {}".format(geometry.cam_id)
self.camera_axis.text(0.01, 0.99, geometry_text,
horizontalalignment='left',
verticalalignment='top',
transform=self.camera_axis.transAxes)