From addc5680d782660c38a20c8a3899fa7c38fe0834 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 10 Jan 2019 01:17:48 +0100 Subject: [PATCH] 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. --- lib/mpl_toolkits/tests/test_axisartist_axislines.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mpl_toolkits/tests/test_axisartist_axislines.py b/lib/mpl_toolkits/tests/test_axisartist_axislines.py index 6fde0c055dd5..98441ea4f807 100644 --- a/lib/mpl_toolkits/tests/test_axisartist_axislines.py +++ b/lib/mpl_toolkits/tests/test_axisartist_axislines.py @@ -51,10 +51,8 @@ def test_Axes(): ax = Axes(fig, [0.15, 0.1, 0.65, 0.8]) fig.add_axes(ax) ax.plot([1, 2, 3], [0, 1, 2]) - ax.set_xscale('log') - - plt.show() + fig.canvas.draw() @image_comparison(baseline_images=['ParasiteAxesAuxTrans_meshplot'],