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 c2d8cde commit 663385b3fb83c2e4af41a524f5fee32a24a27a4a @toddrjen toddrjen committed with toddrjen Jan 9, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/matplotlib/collections.py
View
10 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 663385b

Please sign in to comment.