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

Method __init__

lib/mpl_toolkits/axes_grid1/axes_divider.py:28–57  ·  view source on GitHub ↗

Parameters ---------- fig : Figure pos : tuple of 4 floats Position of the rectangle that will be divided. horizontal : list of :mod:`~mpl_toolkits.axes_grid1.axes_size` Sizes for horizontal division. vertical : list of :mod:`~

(self, fig, pos, horizontal, vertical,
                 aspect=None, anchor="C")

Source from the content-addressed store, hash-verified

26 """
27
28 def __init__(self, fig, pos, horizontal, vertical,
29 aspect=None, anchor="C"):
30 """
31 Parameters
32 ----------
33 fig : Figure
34 pos : tuple of 4 floats
35 Position of the rectangle that will be divided.
36 horizontal : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
37 Sizes for horizontal division.
38 vertical : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
39 Sizes for vertical division.
40 aspect : bool, optional
41 Whether overall rectangular area is reduced so that the relative
42 part of the horizontal and vertical scales have the same scale.
43 anchor : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', \
44'NW', 'W'}, default: 'C'
45 Placement of the reduced rectangle, when *aspect* is True.
46 """
47
48 self._fig = fig
49 self._pos = pos
50 self._horizontal = horizontal
51 self._vertical = vertical
52 self._anchor = anchor
53 self.set_anchor(anchor)
54 self._aspect = aspect
55 self._xrefindex = 0
56 self._yrefindex = 0
57 self._locator = None
58
59 def get_horizontal_sizes(self, renderer):
60 return np.array([s.get_size(renderer) for s in self.get_horizontal()])

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

set_anchorMethod · 0.95

Tested by

no test coverage detected