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

Method skew_deg

lib/matplotlib/transforms.py:2149–2160  ·  view source on GitHub ↗

Add a skew in place. *xShear* and *yShear* are the shear angles along the *x*- and *y*-axes, respectively, in degrees. Returns *self*, so this method can easily be chained with more calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` and

(self, xShear, yShear)

Source from the content-addressed store, hash-verified

2147 return self
2148
2149 def skew_deg(self, xShear, yShear):
2150 """
2151 Add a skew in place.
2152
2153 *xShear* and *yShear* are the shear angles along the *x*- and
2154 *y*-axes, respectively, in degrees.
2155
2156 Returns *self*, so this method can easily be chained with more
2157 calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate`
2158 and :meth:`scale`.
2159 """
2160 return self.skew(math.radians(xShear), math.radians(yShear))
2161
2162
2163class IdentityTransform(Affine2DBase):

Callers 11

test_skew_rectangleFunction · 0.80
test_skewMethod · 0.80
test_scale_plus_otherMethod · 0.80
test_skew_plus_otherMethod · 0.80
affine_image.pyFile · 0.80
create_text_axesFunction · 0.80

Calls 1

skewMethod · 0.95

Tested by 8

test_skew_rectangleFunction · 0.64
test_skewMethod · 0.64
test_scale_plus_otherMethod · 0.64
test_skew_plus_otherMethod · 0.64