From 76f17abc33be3d1d09cf78e708d02b69b06f51aa 2011-04-12 01:05:36 From: Fernando Perez Date: 2011-04-12 01:05:36 Subject: [PATCH] Don't use new subplots() call in matplotlib so tests pass with mpl 0.99 --- diff --git a/IPython/lib/tests/test_pylabtools.py b/IPython/lib/tests/test_pylabtools.py index f800002..af07523 100644 --- a/IPython/lib/tests/test_pylabtools.py +++ b/IPython/lib/tests/test_pylabtools.py @@ -46,7 +46,8 @@ def test_figure_to_svg(): plt.close('all') # simple check for at least svg-looking output - fig, ax = plt.subplots() + fig = plt.figure() + ax = fig.add_subplot(1,1,1) ax.plot([1,2,3]) plt.draw() svg = pt.figure_to_svg(fig)[:100].lower()