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

Method _calc_offsets

lib/mpl_toolkits/axes_grid1/axes_divider.py:165–168  ·  view source on GitHub ↗
(sizes, k)

Source from the content-addressed store, hash-verified

163
164 @staticmethod
165 def _calc_offsets(sizes, k):
166 # Apply k factors to (n, 2) sizes array of (rel_size, abs_size); return
167 # the resulting cumulative offset positions.
168 return np.cumsum([0, *(sizes @ [k, 1])])
169
170 def new_locator(self, nx, ny, nx1=None, ny1=None):
171 """

Callers 1

_locateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected