Skip to content

Commit

Permalink
Remove Agg dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
camillescott committed Nov 23, 2015
1 parent 1aa7efc commit e0c743d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions ficus/tests/test_figuremanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
backend : Agg
backend : PDF

0 comments on commit e0c743d

Please sign in to comment.