melodies_monet.plots
Plotting routines.
- melodies_monet.plots.savefig(fname, *, loc=2, decorate=True, logo=PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/melodies-monet/checkouts/latest/melodies_monet/plots/../data/MM_logo.png'), logo_height=None, **kwargs)
Save figure and add logo.
- Parameters
fname (
str
) – Output file name or path. Passed toplt.savefig
. Must include desired file extension (.jpg
or.png
).loc (
int
) – The location for the logo.1 – bottom left (default)
2 – bottom right
3 – top right
4 – top left
decorate (
bool
, default:True
) – Whether to add the logo.logo (
str
, optional) – Path to the logo to be used. If not provided, the MONET logo is used.logo_height (
float
orint
, optional) – Desired logo height in pixels. If not provided, the original logo image dimensions are used. Modify to scale the logo.**kwargs (
dict
) – Passed to theplt.savefig
function.
- Returns
None
Modules
Plot_2D.py this code is designed for plotting CESM output can be used for either finite volume or spectral element (+ regional refinement) |
|