Skip to content

Commit 1702786

Browse files
committed
TST : add test for no snapping of 'o' path
1 parent 37927b2 commit 1702786

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
12.9 KB
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3586,6 +3586,18 @@ def test_set_get_ticklabels():
35863586
ax[1].set_yticklabels(ax[0].get_yticklabels() )
35873587

35883588

3589+
@image_comparison(baseline_images=['o_marker_path_snap'], extensions=['png'],
3590+
savefig_kwarg={'dpi': 72})
3591+
def test_o_marker_path_snap():
3592+
fig, ax = plt.subplots()
3593+
ax.margins(.1)
3594+
for ms in range(1, 15):
3595+
ax.plot([1, 2, ], np.ones(2) + ms, 'o', ms=ms)
3596+
3597+
for ms in np.linspace(1, 10, 25):
3598+
ax.plot([3, 4, ], np.ones(2) + ms, 'o', ms=ms)
3599+
3600+
35893601
@cleanup
35903602
def test_margins():
35913603
# test all ways margins can be called

0 commit comments

Comments
 (0)