MCPcopy
hub / github.com/matplotlib/matplotlib / unit_circle

Method unit_circle

lib/matplotlib/path.py:848–857  ·  view source on GitHub ↗

Return the readonly :class:`Path` of the unit circle. For most cases, :func:`Path.circle` will be what you want.

(cls)

Source from the content-addressed store, hash-verified

846
847 @classmethod
848 def unit_circle(cls):
849 """
850 Return the readonly :class:`Path` of the unit circle.
851
852 For most cases, :func:`Path.circle` will be what you want.
853 """
854 if cls._unit_circle is None:
855 cls._unit_circle = cls.circle(center=(0, 0), radius=1,
856 readonly=True)
857 return cls._unit_circle
858
859 @classmethod
860 def circle(cls, center=(0., 0.), radius=1., readonly=False):

Callers 15

circular_spineMethod · 0.80
_set_circleMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__call__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
plot_pathsFunction · 0.80
test_readonly_pathFunction · 0.80
test_tickedstrokeFunction · 0.80

Calls 1

circleMethod · 0.80

Tested by 12

plot_pathsFunction · 0.64
test_readonly_pathFunction · 0.64
test_tickedstrokeFunction · 0.64
test_clip_to_bboxFunction · 0.64
test_clippingFunction · 0.64