Skip to content

Commit 2313e90

Browse files
committed
Merge branch 'transparent_pdf_markers' of git://github.com/mdboom/matplotlib into mdboom-transparent_pdf_markers
Upstream PR was based on slightly earlier commit on v1.2.x.
2 parents 4fad114 + 715cd8d commit 2313e90

File tree

5 files changed

+302
-1
lines changed

5 files changed

+302
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,10 @@ def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None)
15561556
return
15571557

15581558
self.check_gc(gc, rgbFace)
1559-
fillp = gc.fillp()
1559+
if rgbFace:
1560+
fillp = gc.fillp()
1561+
else:
1562+
fillp = None
15601563
strokep = gc.strokep()
15611564

15621565
output = self.file.output
Binary file not shown.
Loading
Loading

lib/matplotlib/tests/test_axes.py

+9
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,15 @@ def test_hist_stacked_weighted():
901901
ax = fig.add_subplot(111)
902902
ax.hist( (d1, d2), weights=(w1,w2), histtype="stepfilled", stacked=True)
903903

904+
@image_comparison(baseline_images=['transparent_markers'], remove_text=True)
905+
def test_transparent_markers():
906+
np.random.seed(0)
907+
data = np.random.random(50)
908+
909+
fig = plt.figure()
910+
ax = fig.add_subplot(111)
911+
ax.plot(data, 'D', mfc='none', markersize=100)
912+
904913
if __name__=='__main__':
905914
import nose
906915
nose.runmodule(argv=['-s','--with-doctest'], exit=False)

0 commit comments

Comments
 (0)