Skip to content

Commit

Permalink
Add ability to change savefig options
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Marley committed Sep 18, 2018
1 parent 66c27f2 commit b167c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ def text_labels(self,axis=None):



def savefig(self):
"""Save the figure"""
plt.savefig(self.saveAs+'.'+self.format)
def savefig(self,**kwargs):
"""Save the figure. Use kwargs to modify arguments from style file"""
plt.savefig(self.saveAs+'.'+self.format,**kwargs)
plt.close()

return
Expand Down

0 comments on commit b167c3e

Please sign in to comment.