omit savefig metadata to improve version control
@@ -1385,13 +1385,15 @@ def make_figs(figure_name, saveFigs, drawFigs, target_dir="Figures"):
# Save the figures in several formats
print("Saving figure {} in {}".format(figure_name, target_dir))
plt.savefig(
- os.path.join(target_dir, "{}.jpg".format(figure_name))
+ os.path.join(target_dir, "{}.jpg".format(figure_name)),
+ metadata=none
) # For web/html
plt.savefig(
- os.path.join(target_dir, "{}.png".format(figure_name))
+ os.path.join(target_dir, "{}.png".format(figure_name)),
+ metadata=none
) # For web/html
- plt.savefig(os.path.join(target_dir, "{}.pdf".format(figure_name))) # For LaTeX
- plt.savefig(os.path.join(target_dir, "{}.svg".format(figure_name))) # For html5
+ plt.savefig(os.path.join(target_dir, "{}.pdf".format(figure_name)),metadata=none) # For LaTeX
+ plt.savefig(os.path.join(target_dir, "{}.svg".format(figure_name)),metadata=none) # For html5
# Make sure it's possible to plot it by checking for GUI
if drawFigs and find_gui():
plt.ion() # Counterintuitively, you want interactive mode on if you don't want to interact
