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

Skip to content

Commit d179f4b

Browse files
committed
Also use 'loc=0' in 'test_various_labels' to further test the new code.
1 parent 49ee4e8 commit d179f4b

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

Binary file not shown.
292 Bytes
Loading

lib/matplotlib/tests/baseline_images/test_legend/legend_various_labels.svg

Lines changed: 10 additions & 10 deletions
Loading

lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_various_labels():
4747
ax.plot(range(4), 'o', label=1)
4848
ax.plot(np.linspace(4, 4.1), 'o', label=u'D\xe9velopp\xe9s')
4949
ax.plot(range(4, 1, -1), 'o', label='__nolegend__')
50-
ax.legend(numpoints=1)
50+
ax.legend(numpoints=1, loc=0)
5151

5252

5353
@image_comparison(baseline_images=['fancy'], remove_text=True)

0 commit comments

Comments
 (0)