matplotlib.pyplot.gci#

matplotlib.pyplot.gci()[source]#

Get the current colorable artist.

Specifically, returns the currentScalarMappable instance (Imagecreated byimshow orfigimage,Collection created bypcolor orscatter, etc.), orNone if no such instance has been defined.

The current image is an attribute of the current Axes, or the nearestearlier Axes in the current figure that contains an image.

Notes

Historically, the only colorable artists were images; hence the namegci (get current image).

On this page