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

Method get_patch_transform

lib/matplotlib/patches.py:324–333  ·  view source on GitHub ↗

Return the `~.transforms.Transform` instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinate

(self)

Source from the content-addressed store, hash-verified

322 return artist.Artist.get_transform(self)
323
324 def get_patch_transform(self):
325 """
326 Return the `~.transforms.Transform` instance mapping patch coordinates
327 to data coordinates.
328
329 For example, one may define a patch of a circle which represents a
330 radius of 5 by providing coordinates for a unit circle, and a
331 transform which scales the coordinates (the patch coordinate) by 5.
332 """
333 return transforms.IdentityTransform()
334
335 def get_antialiased(self):
336 """Return whether antialiasing is used for drawing."""

Callers 2

get_transformMethod · 0.95
get_patch_transformMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected