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

Method rotate_deg

lib/matplotlib/transforms.py:2055–2063  ·  view source on GitHub ↗

Add a rotation (in degrees) to this transform in place. Returns *self*, so this method can easily be chained with more calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` and :meth:`scale`.

(self, degrees)

Source from the content-addressed store, hash-verified

2053 return self
2054
2055 def rotate_deg(self, degrees):
2056 """
2057 Add a rotation (in degrees) to this transform in place.
2058
2059 Returns *self*, so this method can easily be chained with more
2060 calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate`
2061 and :meth:`scale`.
2062 """
2063 return self.rotate(math.radians(degrees))
2064
2065 def rotate_around(self, x, y, theta):
2066 """

Callers 15

drawMethod · 0.80
__init__Method · 0.80
rotate_deg_aroundMethod · 0.80
rotatedMethod · 0.80
_set_tuple_markerMethod · 0.80
_set_circleMethod · 0.80
_set_triangleMethod · 0.80
_set_squareMethod · 0.80
_set_diamondMethod · 0.80
_set_hexagon2Method · 0.80
_set_octagonMethod · 0.80

Calls 1

rotateMethod · 0.95

Tested by 11

test_alt_transformFunction · 0.64
test_rotate_imageFunction · 0.64
test_rotateMethod · 0.64
test_scale_plus_otherMethod · 0.64
test_skew_plus_otherMethod · 0.64