valeriupredoi / bgcval2

Package for BGCVal v2.0
3 stars 0 forks source link

Added dpi and savepdf options to comparison report for publications #123

Closed ledm closed 7 months ago

ledm commented 7 months ago

Colin asked for a higher resolution version of the images, so I added an option is the report maker to set image resolution in dpi, and also a flag to save images as a pdf.

ledm commented 7 months ago

I'm definitely getting my money's worth out of @valeriupredoi this week! Thanks for the hard work mate!

valeriupredoi commented 7 months ago

only that you're not paying me a single penny though :rofl: Lemme have a looksee in a jiffy :+1:

ledm commented 7 months ago

If we leave the dpi as the default value (None) then the image will be saved using the user's default dpi settings, which can be changes using:

plt.rcParams['savefig.dpi'] = 300
valeriupredoi commented 7 months ago

okidoki :+1:

ledm commented 7 months ago

Added a int flag check for dpi.

ledm commented 7 months ago

Done here. Going to merge if V is happy.