-
-
Notifications
You must be signed in to change notification settings - Fork 7.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.)
@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 to suppress 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.
Closes matplotlib#16678 This does a bit of jiggery-pokery to respect the datapath set in the users matplotlibrc. This is going to have an expedited deprecation cycle as we don't think end-users should be setting this rcparam.
5f62526
to
ecd95c4
Compare
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