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

Method get_co_vertices

lib/matplotlib/patches.py:1866–1878  ·  view source on GitHub ↗

Return the co-vertices coordinates of the ellipse. The definition can be found `here `_ .. versionadded:: 3.8

(self)

Source from the content-addressed store, hash-verified

1864 return [tuple(x) for x in ret]
1865
1866 def get_co_vertices(self):
1867 """
1868 Return the co-vertices coordinates of the ellipse.
1869
1870 The definition can be found `here <https://en.wikipedia.org/wiki/Ellipse>`_
1871
1872 .. versionadded:: 3.8
1873 """
1874 if self.width < self.height:
1875 ret = self.get_patch_transform().transform([(1, 0), (-1, 0)])
1876 else:
1877 ret = self.get_patch_transform().transform([(0, 1), (0, -1)])
1878 return [tuple(x) for x in ret]
1879
1880
1881class Annulus(Patch):

Callers 2

test_ellipse_verticesFunction · 0.95
ellipse_arrow.pyFile · 0.80

Calls 2

get_patch_transformMethod · 0.95
transformMethod · 0.45

Tested by 1

test_ellipse_verticesFunction · 0.76