MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_figure

Method get_figure

lib/matplotlib/artist.py:752–765  ·  view source on GitHub ↗

Return the `.Figure` or `.SubFigure` instance the artist belongs to. Parameters ---------- root : bool, default=False If False, return the (Sub)Figure this artist is on. If True, return the root Figure for a nested tree of SubFigures.

(self, root=False)

Source from the content-addressed store, hash-verified

750 return self._path_effects
751
752 def get_figure(self, root=False):
753 """
754 Return the `.Figure` or `.SubFigure` instance the artist belongs to.
755
756 Parameters
757 ----------
758 root : bool, default=False
759 If False, return the (Sub)Figure this artist is on. If True,
760 return the root Figure for a nested tree of SubFigures.
761 """
762 if root and self._parent_figure is not None:
763 return self._parent_figure.get_figure(root=True)
764
765 return self._parent_figure
766
767 def set_figure(self, fig):
768 """

Callers 15

removeMethod · 0.95
_different_canvasMethod · 0.95
pickableMethod · 0.95
pickMethod · 0.95
__init__Method · 0.45
apply_aspectMethod · 0.45
_button_pressMethod · 0.45
_button_releaseMethod · 0.45
_on_moveMethod · 0.45
errorbarMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls