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

Save figures in a path relative to the script #127

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Mar 29, 2023

This allows running them from the scripts directory, or the top of the checkout.

Also change plt.savefig to fig.savefig.

@jimustafa
Copy link
Contributor

Maybe ROOT_DIR, or something similar, rather than REPO? Also, many of the plt.savefig to fig.savefig changes were made in #88, but that PR has languished for some time now; anyhow, the merge conflicts should not be too difficult to resolve.

@QuLogic
Copy link
Member Author

QuLogic commented Mar 29, 2023

Sure, used ROOT_DIR (to be honest, I was not really happy with REPO either, but couldn't think of what to use instead.)

This allows running them from the `scripts` directory, _or_ the top of
the checkout.
@timhoffm timhoffm merged commit 094933d into matplotlib:master Jan 30, 2024
3 checks passed
@QuLogic QuLogic deleted the script-relative-save branch January 30, 2024 11:25
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.

3 participants