matplotlib.pyplot.gci
- matplotlib.pyplot.gci()
Get the current colorable artist.
Specifically, returns the current
ScalarMappableinstance (Imagecreated byimshowor, created by or , etc.), or if no such instance has been defined.
Get the current colorable artist.
Specifically, returns the current ScalarMappable instance (Image
created by imshow or , created by or
, etc.), or if no such instance has been defined.
The current image is an attribute of the current Axes, or the nearest earlier Axes in the current figure that contains an image.
Historically, the only colorable artists were images; hence the name
gci (get current image).