Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Deprecate rcParams["datapath"] in favor of mpl.get_data_path().#16722
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The rcParam cannot be meaningfully set by the end user from theirmatplotlibrc or Python code.(This is a manual backport to 3.2.x.)
@tacaswell I don't think this will help if the user directly assigns to rcParams["datapath"]? |
It will not, but I thought the OP was loading it from a file? The other option is to add a flag tosuppress checking the rcParams so it works no matter what. |
OK, I guess your solution works for that case... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
AFAICT, this correctly raises the deprecation warning and sets the path, but I have a couple questions.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closesmatplotlib#16678This does a bit of jiggery-pokery to respect the datapath set inthe users matplotlibrc. This is going to have an expediteddeprecation cycle as we don't think end-users should be setting thisrcparam.
5f62526
toecd95c4
CompareUh oh!
There was an error while loading.Please reload this page.
Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
So this fixes the thing we broke for the OP but does not fully restore the functionality. I am 👍 on this being good enough, but open to the argument we should fully restore the rcparam functionality. |
@tacaswell's patch looks fine to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
despite my having written a bunch of this.
The rcParam cannot be meaningfully set by the end user from their
matplotlibrc or Python code.
(This is a manual backport to 3.2.x of#16417; see discussion there.)
PR Summary
PR Checklist