8000 added test for translucent markers · matplotlib/matplotlib@50f2ca6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50f2ca6

Browse files
tacaswellThomas A Caswell
authored andcommitted
added test for translucent markers
1 parent 639034d commit 50f2ca6

File tree

4 files changed

+303
-0
lines changed

4 files changed

+303
-0
lines changed
Binary file not shown.
Loading
Lines changed: 289 additions & 0 deletions
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ def test_transparent_markers():
962962
ax = fig.add_subplot(111)
963963
ax.plot(data, 'D', mfc='none', markersize=100)
964964

965+
965966
@cleanup
966967
def test_mollweide_forward_inverse_closure():
967968
# test that the round-trip Mollweide forward->inverse transformation is an
@@ -1005,6 +1006,19 @@ def test_mollweide_inverse_forward_closure():
10051006
# compare
10061007
np.testing.assert_array_almost_equal(xy, xy2, 3)
10071008

1009+
1010+
1011+
@image_comparison(baseline_images=['translucent_markers'], remove_text=True)
1012+
def test_translucent_markers():
1013+
np.random.seed(0)
1014+
data = np.random.random(50)
1015+
1016+
fig = plt.figure()
1017+
ax = fig.add_subplot(111)
1018+
ax.plot(data, 'D', mfc=[1,0,0,.5], markersize=100)
1019+
1020+
1021+
10081022
if __name__=='__main__':
10091023
import nose
10101024
nose.runmodule(argv=['-s','--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0