Skip to content

Commit f645f42

Browse files
committed
Merged revisions 7919 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_99_maint ........ r7919 | mdboom | 2009-11-03 10:46:14 -0500 (Tue, 03 Nov 2009) | 2 lines [2890979] Close paths correctly in PolyCollection ........ svn path=/trunk/matplotlib/; revision=7922
1 parent dc8eab4 commit f645f42

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

lib/matplotlib/collections.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ def set_verts(self, verts, closed=True):
574574
if closed:
575575
self._paths = []
576576
for xy in verts:
577+
<<<<<<< .working
577578
if len(xy):
578579
if np.ma.isMaskedArray(xy):
579580
xy = np.ma.concatenate([xy, np.zeros((1,2))])
@@ -585,6 +586,19 @@ def set_verts(self, verts, closed=True):
585586
codes[0] = mpath.Path.MOVETO
586587
codes[-1] = mpath.Path.CLOSEPOLY
587588
self._paths.append(mpath.Path(xy, codes))
589+
=======
590+
if len(xy):
591+
if np.ma.isMaskedArray(xy):
592+
xy = np.ma.concatenate([xy, np.zeros((1,2))])
593+
else:
594+
xy = np.asarray(xy)
595+
xy = np.concatenate([xy, np.zeros((1,2))])
596+
codes = np.empty(xy.shape[0], dtype='uint8')
597+
codes[:] = mpath.Path.LINETO
598+
codes[0] = mpath.Path.MOVETO
599+
codes[-1] = mpath.Path.CLOSEPOLY
600+
self._paths.append(mpath.Path(xy, codes))
601+
>>>>>>> .merge-right.r7919
588602
else:
589603
self._paths.append(mpath.Path(xy))
590604
else:

src/_backend_agg.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ GCAgg::GCAgg(const Py::Object &gc, double dpi) :
163163
_set_hatch_path(gc);
164164
}
165165

166+
<<<<<<< .working
167+
=======
168+
GCAgg::GCAgg(double dpi) :
169+
dpi(dpi), isaa(true),
170+
cap(agg::butt_cap), join(agg::round_join), linewidth(1.0), alpha(1.0),
171+
dashOffset(0.0)
172+
{
173+
174+
}
175+
176+
>>>>>>> .merge-right.r7919
166177
void
167178
GCAgg::_set_antialiased(const Py::Object& gc) {
168179
_VERBOSE("GCAgg::antialiased");

0 commit comments

Comments
 (0)