Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Check Axes/Figure import paths in boilerplate.py #29948

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

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Apr 18, 2025

Before this PR, if the Matplotlib installed in the current environment is not the same as the source tree boilerplate.py is from, the Axes/Figure classes not taken from the correct source tree. This adds a guard to make sure this isn't the case.

I have confirmed locally this prevents situations like those described in #29921

I can't think of a situation where one wants to deliberately generate pyplot.py from another source tree, but if there is manually specifying the other source tree as an argument to boilerplate.py should still work.

Fixes #29921.

@dstansby dstansby marked this pull request as ready for review April 18, 2025 22:11
@jklymak jklymak merged commit bccbc2c into matplotlib:main Apr 19, 2025
39 checks passed
@dstansby dstansby deleted the boilerplate-path-check branch April 19, 2025 17:10
@QuLogic QuLogic added this to the v3.11.0 milestone Apr 21, 2025
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.

boilerplate.py seems to remove parameters
4 participants