Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1006c08

Browse files
committed
zero-sized tick test
1 parent 874ccdd commit 1006c08

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,16 @@ def test_manage_xticks():
23412341
assert_array_equal(old_xlim, new_xlim)
23422342

23432343

2344+
@cleanup
2345+
def test_size0_ticks():
2346+
# allow font size to be zero, which affects ticks when there is
2347+
# no other text in the figure.
2348+
plt.plot([0, 1], [0, 1])
2349+
matplotlib.rcParams.update({'font.size': 0})
2350+
b = io.BytesIO()
2351+
plt.savefig(b, dpi=80, format='raw')
2352+
2353+
23442354
@image_comparison(baseline_images=['errorbar_basic', 'errorbar_mixed',
23452355
'errorbar_basic'])
23462356
def test_errorbar():

0 commit comments

Comments
 (0)