Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

jehyunlee
Copy link
Contributor

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')

the figure saving command report errors if there is no directory named "figures", due to the following line (ex. line 111)
the directory "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
Copy link
Contributor

kthyng commented Feb 4, 2021

Thanks @jehyunlee, this is a reasonable change.

@kthyng kthyng merged commit 57efe7f into matplotlib:master Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants