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

Function convert_lim

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:2070–2074  ·  view source on GitHub ↗

Convert min/max limits to center and range.

(dmin, dmax)

Source from the content-addressed store, hash-verified

2068 """Test mouse panning using the middle mouse button."""
2069
2070 def convert_lim(dmin, dmax):
2071 """Convert min/max limits to center and range."""
2072 center = (dmin + dmax) / 2
2073 range_ = dmax - dmin
2074 return center, range_
2075
2076 fig = plt.figure()
2077 ax = fig.add_subplot(projection='3d')

Callers 1

test_panFunction · 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…