Skip to content

Commit 84b4b29

Browse files
committed
See bug #3081512. Set line widths correctly in draw_quad_mesh.
svn path=/trunk/matplotlib/; revision=8738
1 parent 7fe5dd5 commit 84b4b29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_macosx.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -1758,8 +1758,6 @@ static BOOL _clip(CGContextRef cr, PyObject* object)
17581758
/* Preset graphics context properties if possible */
17591759
CGContextSetShouldAntialias(cr, antialiased);
17601760

1761-
CGContextSetLineWidth(cr, 0.0);
1762-
17631761
if (Nfacecolors==1)
17641762
{
17651763
const double r = *(double*)PyArray_GETPTR2(facecolors, 0, 0);
@@ -1822,6 +1820,7 @@ static BOOL _clip(CGContextRef cr, PyObject* object)
18221820

18231821
CGContextMoveToPoint(cr, points[3].x, points[3].y);
18241822
CGContextAddLines(cr, points, 4);
1823+
CGContextClosePath(cr);
18251824

18261825
if (Nfacecolors > 1)
18271826
{

0 commit comments

Comments
 (0)