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

Function transform_coord

lib/mpl_toolkits/mplot3d/proj3d.py:141–144  ·  view source on GitHub ↗
(coord, axis)

Source from the content-addressed store, hash-verified

139 symlog, etc.) for 3D projection. Preserves masked arrays.
140 """
141 def transform_coord(coord, axis):
142 coord = np.asanyarray(coord)
143 data = np.ma.getdata(coord).ravel()
144 return axis.get_transform().transform(data).reshape(coord.shape)
145
146 xs_scaled = transform_coord(xs, axes.xaxis)
147 ys_scaled = transform_coord(ys, axes.yaxis)

Callers 1

_apply_scale_transformsFunction · 0.85

Calls 2

transformMethod · 0.45
get_transformMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…