You are reading an old version of the documentation (v2.2.2). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.findobj.html
Version 2.2.2
matplotlib
Fork me on GitHub

matplotlib.pyplot.findobj

matplotlib.pyplot.findobj(o=None, 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.