def on_motion(self, event):
        """
        dragging the marker will change the graph.
        """
        if self.bool_press is False: return
        if event.inaxes != self.img.axes: return

        navigation_tools.change_coordinates(event, self.fit_dataview)
        self.update_graph()
        self.canvas.draw()
 def on_motion(self, event):        
     """
     dragging the marker will change the graph.
     """
     if self.bool_press is False: return
     if event.inaxes != self.img.axes: return
 
     navigation_tools.change_coordinates(event, self.fit_dataview)
     self.update_graph()
     self.canvas.draw()
Beispiel #3
0
    def on_press_image(self, event):
        """
        This changes the spec graph to theclicked xy coordinate and moves
        the marker on the image.
        
        The .5 addition in the floor function is there to make xdata print 
        correct coordinates.        
        """
        if event.inaxes != self.img.axes: return
        contains, attrd = self.img.contains(event)

        if not contains: return

        navigation_tools.change_coordinates(event, self.dataview)
        self.bool_press = True
        self.update_graph()
 def on_press_image(self, event):
     """
     This changes the spec graph to theclicked xy coordinate and moves
     the marker on the image.
     
     The .5 addition in the floor function is there to make xdata print 
     correct coordinates.        
     """
     if event.inaxes != self.img.axes: return    
     contains, attrd = self.img.contains(event)
 
     if not contains: return
         
     navigation_tools.change_coordinates(event, self.cube_dataview)
     self.bool_press = True
     self.update_graph()
     self.canvas.draw()