matplotlib.pyplot.findobj#

matplotlib.pyplot.findobj(o=None,match=None,include_self=True)[source]#

Find artist objects.

Recursively find allArtist instances contained in the artist.

Parameters:
match

A filter criterion for the matches. This can be

  • None: Return all objects contained in artist.

  • A function with signaturedefmatch(artist:Artist)->bool.The result will only contain artists for which the functionreturnsTrue.

  • A class instance: e.g.,Line2D. The result will only containartists of this class or its subclasses (isinstance check).

include_selfbool

Includeself in the list to be checked for a match.

Returns:
list ofArtist
On this page