MCPcopy
hub / github.com/matplotlib/matplotlib / set_patch_arc

Method set_patch_arc

lib/matplotlib/spines.py:88–99  ·  view source on GitHub ↗

Set the spine to be arc-like.

(self, center, radius, theta1, theta2)

Source from the content-addressed store, hash-verified

86 self._patch_transform = mtransforms.IdentityTransform()
87
88 def set_patch_arc(self, center, radius, theta1, theta2):
89 """Set the spine to be arc-like."""
90 self._patch_type = 'arc'
91 self._center = center
92 self._width = radius * 2
93 self._height = radius * 2
94 self._theta1 = theta1
95 self._theta2 = theta2
96 self._path = mpath.Path.arc(theta1, theta2)
97 # arc drawn on axes transform
98 self.set_transform(self.axes.transAxes)
99 self.stale = True
100
101 def set_patch_circle(self, center, radius):
102 """Set the spine to be circular."""

Callers 1

arc_spineMethod · 0.80

Calls 2

arcMethod · 0.80
set_transformMethod · 0.45

Tested by

no test coverage detected