We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a665710 + faf58d5 commit f2ff060Copy full SHA for f2ff060
lib/matplotlib/collections.py
@@ -1008,6 +1008,16 @@ def set_segments(self, segments):
1008
set_verts = set_segments # for compatibility with PolyCollection
1009
set_paths = set_segments
1010
1011
+ def get_segments(self):
1012
+ segments = []
1013
+
1014
+ for path in self._paths:
1015
+ vertices = [vertex for vertex, _ in path.iter_segments()]
1016
+ vertices = np.asarray(vertices)
1017
+ segments.append(vertices)
1018
1019
+ return segments
1020
1021
def _add_offsets(self, segs):
1022
offsets = self._uniform_offsets
1023
Nsegs = len(segs)
0 commit comments