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

Method get_verts

lib/matplotlib/patches.py:105–117  ·  view source on GitHub ↗

Return a copy of the vertices used in this patch. If the patch contains Bézier curves, the curves will be interpolated by line segments. To access the curves as curves, use `get_path`.

(self)

Source from the content-addressed store, hash-verified

103 self._internal_update(kwargs)
104
105 def get_verts(self):
106 """
107 Return a copy of the vertices used in this patch.
108
109 If the patch contains Bézier curves, the curves will be interpolated by
110 line segments. To access the curves as curves, use `get_path`.
111 """
112 trans = self.get_transform()
113 path = self.get_path()
114 polygons = path.to_polygons(trans)
115 if len(polygons):
116 return polygons[0]
117 return []
118
119 def _process_radius(self, radius):
120 if radius is not None:

Callers 6

geometryMethod · 0.80
_make_barbsMethod · 0.80
test_rotate_rectFunction · 0.80
test_negative_rectFunction · 0.80
test_empty_vertsFunction · 0.80
test_arrow_set_dataFunction · 0.80

Calls 3

get_transformMethod · 0.95
get_pathMethod · 0.95
to_polygonsMethod · 0.80

Tested by 4

test_rotate_rectFunction · 0.64
test_negative_rectFunction · 0.64
test_empty_vertsFunction · 0.64
test_arrow_set_dataFunction · 0.64