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

Function _move_from_center

lib/mpl_toolkits/mplot3d/axis3d.py:16–22  ·  view source on GitHub ↗

For each coordinate where *axmask* is True, move *coord* away from *centers* by *deltas*.

(coord, centers, deltas, axmask=(True, True, True))

Source from the content-addressed store, hash-verified

14
15
16def _move_from_center(coord, centers, deltas, axmask=(True, True, True)):
17 """
18 For each coordinate where *axmask* is True, move *coord* away from
19 *centers* by *deltas*.
20 """
21 coord = np.asarray(coord)
22 return coord + axmask * np.copysign(1, coord - centers) * deltas
23
24
25def _tick_update_position(tick, tickxs, tickys, labelpos):

Callers 3

_draw_ticksMethod · 0.85
_draw_offset_textMethod · 0.85
_draw_labelsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…