Skip to content

Commit addc568

Browse files
committed
Remove an "cannot show figure in agg" warning in test suite.
Run `pytest lib/mpl_toolkits/tests/test_axisartist_axislines.py::test_Axes` to see it.
1 parent 6c0bc66 commit addc568

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/mpl_toolkits/tests/test_axisartist_axislines.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ def test_Axes():
5151
ax = Axes(fig, [0.15, 0.1, 0.65, 0.8])
5252
fig.add_axes(ax)
5353
ax.plot([1, 2, 3], [0, 1, 2])
54-
5554
ax.set_xscale('log')
56-
57-
plt.show()
55+
fig.canvas.draw()
5856

5957

6058
@image_comparison(baseline_images=['ParasiteAxesAuxTrans_meshplot'],

0 commit comments

Comments
 (0)