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 45cfb2d

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

File tree

Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Loading

‎lib/matplotlib/tests/test_axes.py

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