From e0c743d5dc5b4e26404971c2c45b0e73fd543562 Mon Sep 17 00:00:00 2001 From: Camille Scott Date: Sun, 22 Nov 2015 20:05:17 -0800 Subject: [PATCH] Remove Agg dependency --- ficus/tests/test_figuremanager.py | 11 ++--------- matplotlibrc | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ficus/tests/test_figuremanager.py b/ficus/tests/test_figuremanager.py index 78362a0..4d69734 100644 --- a/ficus/tests/test_figuremanager.py +++ b/ficus/tests/test_figuremanager.py @@ -21,17 +21,10 @@ def test_save(self): with TemporaryDirectory() as td: with TemporaryFile(td) as filename: - with FigureManager(filename=filename) as (fig, ax): + with FigureManager(filename=filename + '.pdf') as (fig, ax): ax.plot(xrange(10), xrange(10)) - self.assertTrue(os.path.isfile(filename + '.png')) - - with FigureManager(filename=filename+'.svg') as (fig, ax): - ax.plot(xrange(10), xrange(10)) - - self.assertTrue(os.path.isfile(filename + '.svg')) - - + self.assertTrue(os.path.isfile(filename + '.pdf')) def test_subplots_nrows(self): '''Test that FigureManager generates multiple subplots with nrows. diff --git a/matplotlibrc b/matplotlibrc index 1346827..ad046d5 100644 --- a/matplotlibrc +++ b/matplotlibrc @@ -1 +1 @@ -backend : Agg +backend : PDF