matplotlib.pyplot.gci¶
-
matplotlib.pyplot.gci()[source]¶ Get the current colorable artist.
Specifically, returns the current
ScalarMappableinstance (Imagecreated byimshoworfigimage,Collectioncreated bypcolororscatter, etc.), or None 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.
Notes
Historically, the only colorable artists were images; hence the name
gci(get current image).