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

Method set_figure

lib/matplotlib/offsetbox.py:221–231  ·  view source on GitHub ↗

Set the `.Figure` for the `.OffsetBox` and all its children. Parameters ---------- fig : `~matplotlib.figure.Figure`

(self, fig)

Source from the content-addressed store, hash-verified

219 self._offset = (0, 0)
220
221 def set_figure(self, fig):
222 """
223 Set the `.Figure` for the `.OffsetBox` and all its children.
224
225 Parameters
226 ----------
227 fig : `~matplotlib.figure.Figure`
228 """
229 super().set_figure(fig)
230 for c in self.get_children():
231 c.set_figure(fig)
232
233 @martist.Artist.axes.setter
234 def axes(self, ax):

Callers 3

add_artistMethod · 0.45
set_figureMethod · 0.45
drawMethod · 0.45

Calls 1

get_childrenMethod · 0.95

Tested by

no test coverage detected