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

Function _norm_text_angle

lib/mpl_toolkits/mplot3d/art3d.py:33–38  ·  view source on GitHub ↗

Return the given angle normalized to -90 < *a* <= 90 degrees.

(a)

Source from the content-addressed store, hash-verified

31
32
33def _norm_text_angle(a):
34 """Return the given angle normalized to -90 < *a* <= 90 degrees."""
35 a = (a + 180) % 180
36 if a > 90:
37 a = a - 180
38 return a
39
40
41def get_dir_vector(zdir):

Callers 1

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