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

Function _sph2cart

lib/matplotlib/tests/test_colors.py:1179–1183  ·  view source on GitHub ↗
(theta, phi)

Source from the content-addressed store, hash-verified

1177
1178
1179def _sph2cart(theta, phi):
1180 x = np.cos(theta) * np.sin(phi)
1181 y = np.sin(theta) * np.sin(phi)
1182 z = np.cos(phi)
1183 return x, y, z
1184
1185
1186def _azimuth2math(azimuth, elevation):

Callers 2

alternative_hillshadeFunction · 0.85
planeFunction · 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…