Matplotlib.pyplot.gci() in Python
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, etc.
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 gci() method in pyplot module of matplotlib library is used to get the current colorable artist.
Parameters: This method does not accept any parameters.
Returns: This method returns the current colorable artist.
Below examples illustrate the matplotlib.pyplot.gci() function in matplotlib.pyplot:
The current colorable artist is : AxesImage(50, 44;310x308)
The current colorable artist is : None