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

Function _azimuth2math

lib/matplotlib/tests/test_colors.py:1186–1193  ·  view source on GitHub ↗

Convert from clockwise-from-north and up-from-horizontal to mathematical conventions.

(azimuth, elevation)

Source from the content-addressed store, hash-verified

1184
1185
1186def _azimuth2math(azimuth, elevation):
1187 """
1188 Convert from clockwise-from-north and up-from-horizontal to mathematical
1189 conventions.
1190 """
1191 theta = np.radians((90 - azimuth) % 360)
1192 phi = np.radians(90 - elevation)
1193 return theta, phi
1194
1195
1196def test_pandas_iterable(pd):

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…