Python matplotlib.widgets.MultiCursor() Examples
The following are 1
code examples of matplotlib.widgets.MultiCursor().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
matplotlib.widgets
, or try the search function
.
Example #1
Source File: matplotlib_example.py From wxGlade with MIT License | 6 votes |
def on_button_multicursor(self, event): from matplotlib.widgets import MultiCursor axes = self.canvas.figure.axes if event.IsChecked() and not self.multicursor and axes: # add multicursor self.multicursor = MultiCursor(self.canvas, axes, color='r', lw=1, horizOn=True, vertOn=True) elif self.multicursor: # remove multicursor self.multicursor.disconnect() self.multicursor = None self.canvas.draw() event.Skip() #################################################################################################################### # draw elements on canvas plot areas / axes (by coordinates)