You can specify the file type, as shown in the documentation for savefig , using format . But as far as I know, you can specify only one format.
Not particularly smart, in order to minimize rewriting code, you have to write save_fig function. Then it can automatically process the corresponding file names and quality.
def save_fig(fig_name, quality="quick-look"): if "quick-look" in quality:
This is probably not the answer you are looking for, since you will need to rewrite each savefig file, but I feel that this can help reduce the amount of re-code in general.
source share