Skip to content

Instantly share code, notes, and snippets.

@mattions
Created September 2, 2015 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattions/e4a9e6daae1873efba3a to your computer and use it in GitHub Desktop.
Save mattions/e4a9e6daae1873efba3a to your computer and use it in GitHub Desktop.
def _save_more_extensions(filename, extensions=['png', 'svg', 'pdf']):
for ext in extensions:
comp_filename = "{0}.{1}".format(filename, ext)
plt.savefig(comp_filename, dpi=300)
print "Saved plot: {0}".format(comp_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment