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

Method __init__

lib/matplotlib/patches.py:1684–1698  ·  view source on GitHub ↗

Create a circle at *xy* = (*x*, *y*) with given *radius*. This circle is approximated by a regular polygon with *resolution* sides. For a smoother circle drawn with splines, see `Circle`. Valid keyword arguments are: %(Patch:kwdoc)s

(self, xy, radius=5, *,
                 resolution=20,  # the number of vertices
                 ** kwargs)

Source from the content-addressed store, hash-verified

1682
1683 @_docstring.interpd
1684 def __init__(self, xy, radius=5, *,
1685 resolution=20, # the number of vertices
1686 ** kwargs):
1687 """
1688 Create a circle at *xy* = (*x*, *y*) with given *radius*.
1689
1690 This circle is approximated by a regular polygon with *resolution*
1691 sides. For a smoother circle drawn with splines, see `Circle`.
1692
1693 Valid keyword arguments are:
1694
1695 %(Patch:kwdoc)s
1696 """
1697 super().__init__(
1698 xy, resolution, radius=radius, orientation=0, **kwargs)
1699
1700
1701class Ellipse(Patch):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected