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

Method __init__

lib/mpl_toolkits/axes_grid1/axes_divider.py:340–360  ·  view source on GitHub ↗

Parameters ---------- axes : :class:`~matplotlib.axes.Axes` xref yref

(self, axes, xref=None, yref=None)

Source from the content-addressed store, hash-verified

338 """
339
340 def __init__(self, axes, xref=None, yref=None):
341 """
342 Parameters
343 ----------
344 axes : :class:`~matplotlib.axes.Axes`
345 xref
346 yref
347 """
348 self._axes = axes
349 if xref is None:
350 self._xref = Size.AxesX(axes)
351 else:
352 self._xref = xref
353 if yref is None:
354 self._yref = Size.AxesY(axes)
355 else:
356 self._yref = yref
357
358 super().__init__(fig=axes.get_figure(), pos=None,
359 horizontal=[self._xref], vertical=[self._yref],
360 aspect=None, anchor="C")
361
362 def _get_new_axes(self, *, axes_class=None, **kwargs):
363 axes = self._axes

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected