8000 TST: Added test for all marker styles with increasing marker sizes · matplotlib/matplotlib@45cfb2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 45cfb2d

Browse files
committed
TST: Added test for all marker styles with increasing marker sizes
1 parent 713b5b0 commit 45cfb2d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,6 +2194,16 @@ def test_empty_eventplot():
21942194
plt.draw()
21952195

21962196

2197+
@image_comparison(baseline_images=['marker_styles'], extensions=['png'], remove_text=True)
2198+
def test_marker_styles():
2199+
fig = plt.figure()
2200+
ax = fig.add_subplot(111)
2201+
for y, marker in enumerate(sorted(matplotlib.markers.MarkerStyle.markers.keys(),
2202+
key=lambda x: str(type(x))+str(x))):
2203+
ax.plot((y % 2)*5 + np.arange(10)*10, np.ones(10)*10*y, linestyle='', marker=marker,
2204+
markersize=10+y/5, label=marker)
2205+
2206+
21972207
@image_comparison(baseline_images=['vertex_markers'], extensions=['png'],
21982208
remove_text=True)
21992209
def test_vertex_markers():

0 commit comments

Comments
 (0)
0