![]() |
VOOZH | about |
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.
The get_gid() method in artist module of matplotlib library is used to get the group id.
Syntax: Artist.get_gid(self)
Parameters: This method does not accepts any parameter.
Returns: This method return the group id.
Below examples illustrate the matplotlib.artist.Artist.get_gid() function in matplotlib:
Example 1:
Output:
👁 ImageValue Return : patch_ 0
Example 2: