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

Method _rotation_coords

lib/mpl_toolkits/mplot3d/axes3d.py:1640–1651  ·  view source on GitHub ↗

Return the rotation angles as a string.

(self)

Source from the content-addressed store, hash-verified

1638 return coords
1639
1640 def _rotation_coords(self):
1641 """
1642 Return the rotation angles as a string.
1643 """
1644 norm_elev = art3d._norm_angle(self.elev)
1645 norm_azim = art3d._norm_angle(self.azim)
1646 norm_roll = art3d._norm_angle(self.roll)
1647 coords = (f"elevation={norm_elev:.0f}\N{DEGREE SIGN}, "
1648 f"azimuth={norm_azim:.0f}\N{DEGREE SIGN}, "
1649 f"roll={norm_roll:.0f}\N{DEGREE SIGN}"
1650 ).replace("-", "\N{MINUS SIGN}")
1651 return coords
1652
1653 def _location_coords(self, xv, yv, renderer):
1654 """

Callers 1

format_coordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected