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

Method _calc_centers_deltas

lib/mpl_toolkits/mplot3d/axis3d.py:302–310  ·  view source on GitHub ↗
(self, maxs, mins)

Source from the content-addressed store, hash-verified

300 return mins, maxs, bounds_proj, highs
301
302 def _calc_centers_deltas(self, maxs, mins):
303 centers = 0.5 * (maxs + mins)
304 # In mpl3.8, the scale factor was 1/12. mpl3.9 changes this to
305 # 1/12 * 24/25 = 0.08 to compensate for the change in automargin
306 # behavior and keep appearance the same. The 24/25 factor is from the
307 # 1/48 padding added to each side of the axis in mpl3.8.
308 scale = 0.08
309 deltas = (maxs - mins) * scale
310 return centers, deltas
311
312 def _get_axis_line_edge_points(self, minmax, maxmin, position=None):
313 """Get the edge points for the black bolded axis line."""

Callers 2

_draw_ticksMethod · 0.95
drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected