Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22ece45

Browse files
committed
Oops: bug fixed Polygon set_closed
svn path=/trunk/matplotlib/; revision=5609
1 parent 83f0f03 commit 22ece45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def set_closed(self, closed):
577577
xy = np.concatenate([xy, [xy[0]]])
578578
else:
579579
if len(xy)>2 and (xy[0]==xy[-1]).all():
580-
xy = xy[0:-2]
580+
xy = xy[0:-1]
581581
self._set_xy(xy)
582582

583583
def _get_xy(self):

0 commit comments

Comments
 (0)