コード例 #1
0
    def __init__(self, parent=None):
        super(PeakMapPlottingWidget, self).__init__(parent, lock_aspect_ratio=False,
                                                    xlabel="rt", ylabel="m/z")
        self.peakmap_item = None
        # patch memeber's methods:
        self.plot.__class__ = ModifiedImagePlot

        # take over events:
        self.NEW_IMAGE_LIMITS = self.plot.NEW_IMAGE_LIMITS
        self.KEY_LEFT = self.plot.KEY_LEFT
        self.KEY_RIGHT = self.plot.KEY_RIGHT
        self.KEY_BACKSPACE = self.plot.KEY_BACKSPACE
        self.KEY_END = self.plot.KEY_END
        self.CURSOR_MOVED = self.plot.CURSOR_MOVED

        self.plot.set_axis_direction("left", False)
        self.plot.set_axis_direction("right", False)

        set_rt_formatting_on_x_axis(self.plot)
        set_y_axis_scale_draw(self)
        self.plot.enableAxis(self.plot.colormap_axis, False)
コード例 #2
0
    def __init__(self, parent=None):
        super(PeakMapPlottingWidget, self).__init__(parent,
                                                    lock_aspect_ratio=False,
                                                    xlabel="rt",
                                                    ylabel="m/z")
        self.peakmap_item = None
        # patch memeber's methods:
        self.plot.__class__ = ModifiedImagePlot

        # take over events:
        self.NEW_IMAGE_LIMITS = self.plot.NEW_IMAGE_LIMITS
        self.KEY_LEFT = self.plot.KEY_LEFT
        self.KEY_RIGHT = self.plot.KEY_RIGHT
        self.KEY_BACKSPACE = self.plot.KEY_BACKSPACE
        self.KEY_END = self.plot.KEY_END
        self.CURSOR_MOVED = self.plot.CURSOR_MOVED

        self.plot.set_axis_direction("left", False)
        self.plot.set_axis_direction("right", False)

        set_rt_formatting_on_x_axis(self.plot)
        set_y_axis_scale_draw(self)
        self.plot.enableAxis(self.plot.colormap_axis, False)
コード例 #3
0
ファイル: eic_plotting_widget.py プロジェクト: gmat/emzed2
 def _setup_axes(self):
     # render tic labels in modfied format:
     set_rt_formatting_on_x_axis(self.plot)
     self.plot.set_axis_title("bottom", "RT")
コード例 #4
0
 def _setup_axes(self):
     # render tic labels in modfied format:
     set_rt_formatting_on_x_axis(self.plot)
     self.plot.set_axis_title("bottom", "RT")