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

Method _init_locators

lib/mpl_toolkits/axes_grid1/axes_grid.py:174–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 self.set_label_mode(label_mode)
173
174 def _init_locators(self):
175 self._divider.set_horizontal(
176 [Size.Scaled(1), self._horiz_pad_size] * (self._ncols-1) + [Size.Scaled(1)])
177 self._divider.set_vertical(
178 [Size.Scaled(1), self._vert_pad_size] * (self._nrows-1) + [Size.Scaled(1)])
179 for i in range(self.n_axes):
180 col, row = self._get_col_row(i)
181 self.axes_all[i].set_axes_locator(
182 self._divider.new_locator(nx=2 * col, ny=2 * (self._nrows - 1 - row)))
183
184 def _get_col_row(self, n):
185 if self._direction == "column":

Callers 1

__init__Method · 0.95

Calls 5

_get_col_rowMethod · 0.95
set_horizontalMethod · 0.80
set_verticalMethod · 0.80
set_axes_locatorMethod · 0.45
new_locatorMethod · 0.45

Tested by

no test coverage detected