matplotlib / cmocean

Colormap setup for standardizing commonly-plotting oceanographic variables.
MIT License
230 stars 52 forks source link

[MOD] removal of 'figures' for savefig() commands #80

Closed jehyunlee closed 3 years ago

jehyunlee commented 3 years ago

the figure saving command report errors if there is no directory named "figures", due to the following line (ex. line 111) the directory name figures/ is replaced with cmocean_ at line 58-59, 112-113, 135-136 to prevent the error.

for example,

if saveplot:
        fig.savefig('ocean_gallery.pdf', bbox_inches='tight')
kthyng commented 3 years ago

Thanks @jehyunlee, this is a reasonable change.