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

Function angled_plane

lib/matplotlib/tests/test_colors.py:1151–1160  ·  view source on GitHub ↗

Create a plane whose normal vector is at an angle from the given azimuth and elevation.

(azimuth, elevation, angle, x, y)

Source from the content-addressed store, hash-verified

1149 return z
1150
1151 def angled_plane(azimuth, elevation, angle, x, y):
1152 """
1153 Create a plane whose normal vector is at an angle from the given
1154 azimuth and elevation.
1155 """
1156 elevation = elevation + angle
1157 if elevation > 90:
1158 azimuth = (azimuth + 180) % 360
1159 elevation = (90 - elevation) % 90
1160 return plane(azimuth, elevation, x, y)
1161
1162 y, x = np.mgrid[5:0:-1, :5]
1163 for az, elev in itertools.product(range(0, 390, 30), range(0, 105, 15)):

Callers 1

Calls 1

planeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…