Esempio n. 1
0
    def mouse_move(self, event):
        """Draw lines when mouseover the axes"""
        if event.inaxes is not None:
            x, y = event.xdata, event.ydata
            self.draw_lines(event.inaxes, x, y)
        else:
            self.clear_lines()

        return NavigationToolbar2WxAgg.mouse_move(self, event)