MCPcopy
hub / github.com/matplotlib/matplotlib / set_patch_circle

Method set_patch_circle

lib/matplotlib/spines.py:101–109  ·  view source on GitHub ↗

Set the spine to be circular.

(self, center, radius)

Source from the content-addressed store, hash-verified

99 self.stale = True
100
101 def set_patch_circle(self, center, radius):
102 """Set the spine to be circular."""
103 self._patch_type = 'circle'
104 self._center = center
105 self._width = radius * 2
106 self._height = radius * 2
107 # circle drawn on axes transform
108 self.set_transform(self.axes.transAxes)
109 self.stale = True
110
111 def set_patch_line(self):
112 """Set the spine to be linear."""

Callers 1

circular_spineMethod · 0.80

Calls 1

set_transformMethod · 0.45

Tested by

no test coverage detected