Created
September 2, 2015 10:37
-
-
Save mattions/e4a9e6daae1873efba3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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