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

Method get_vertices

lib/matplotlib/patches.py:1852–1864  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1850 [(-1, -1), (1, -1), (1, 1), (-1, 1)])
1851
1852 def get_vertices(self):
1853 """
1854 Return the vertices coordinates of the ellipse.
1855
1856 The definition can be found `here <https://en.wikipedia.org/wiki/Ellipse>`_
1857
1858 .. versionadded:: 3.8
1859 """
1860 if self.width < self.height:
1861 ret = self.get_patch_transform().transform([(0, 1), (0, -1)])
1862 else:
1863 ret = self.get_patch_transform().transform([(1, 0), (-1, 0)])
1864 return [tuple(x) for x in ret]
1865
1866 def get_co_vertices(self):
1867 """

Callers 1

test_ellipse_verticesFunction · 0.95

Calls 2

get_patch_transformMethod · 0.95
transformMethod · 0.45

Tested by 1

test_ellipse_verticesFunction · 0.76