matplotlib/matplotlib — pull request #598 by efiring (2011-11-24 20:56:27+00:00)
Title: lines.py: fix bugs in marker alpha and edge colors

Two bugs are fixed:

1) plt.plot(np.arange(3),'ro', mec='none')
was not plotting anything because 'none' was setting the
edgecolor alpha to 0, and that alpha was being propagated
to gc, overriding the face color. The 'none' case needs to
be trapped, not passed on to the GraphicsContext.

2) plt.plot(np.arange(3), 'r.')
was drawing a black edge around the point; same for 'r,';
the markers.py refactoring turned the point and pixel markers
into filled markers, with their default black borders. The
solution here was to special-case them in Line2D. They do
need to be filled, with edges of the same color; otherwise
the pixel can end up nearly invisible, and the point could
end up as a donut.