Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2313e90

Browse filesBrowse 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
Copy full SHA for 2313e90

File tree

Expand file treeCollapse file tree

5 files changed

+302
-1
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+302
-1
lines changed

‎lib/matplotlib/backends/backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py
+4-1Lines changed: 4 additions & 1 deletion
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
+289Lines changed: 289 additions & 0 deletions
Loading

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+9Lines changed: 9 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.