Version 3.0.2
matplotlib
Fork me on GitHub

matplotlib.artist.Artist.findobj

Artist.findobj(match=None, include_self=True)[source]

Find artist objects.

Recursively find all Artist instances contained in self.

match can be

  • None: return all objects contained in artist.
  • function with signature boolean = match(artist) used to filter matches
  • class instance: e.g., Line2D. Only return artists of class type.

If include_self is True (default), include self in the list to be checked for a match.