Matplotlib.artist.Artist.set_picker() in Python
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Artist class contains Abstract base class for objects that render into a FigureCanvas. All visible elements in a figure are subclasses of Artist.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
The set_picker() method in artist module of matplotlib library is used to define the picking behavior of the artist.
Syntax: Artist.set_picker(self, picker)
Parameters: This method accept the following parameters as discussed below:
- picker : This parameter is used to set picking behavior. This can be None or bool or float or function.
Returns: This method the picking behavior of the artist.
Below examples illustrate the matplotlib.artist.Artist.set_picker() function in matplotlib: