Permalink
Browse files

Remove underscores from get_segments variables

As mentioned in the review, the variables in get_segments should not have underscores.  This removes them.
  • Loading branch information...
1 parent 73014b2 commit f6eb03c6becf3beb8f49e4bb4cf3485ad7d58ed2 @toddrjen toddrjen committed Jan 9, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/matplotlib/collections.py
@@ -1009,14 +1009,14 @@ def set_segments(self, segments):
set_paths = set_segments
def get_segments(self):
- _segments = []
+ segments = []
for path in self._paths:
- _vertices = [vertex for vertex, _ in path.iter_segments()]
- _vertices = np.asarray(_vertices)
- _segments.append(_vertices)
+ vertices = [vertex for vertex, _ in path.iter_segments()]
+ vertices = np.asarray(vertices)
+ segments.append(vertices)
- return _segments
+ return segments
get_verts = get_segments # for compatibility with PolyCollection
get_paths = get_segments

0 comments on commit f6eb03c

Please sign in to comment.