Deprecate rcParams["datapath"] in favor of mpl.get_data_path().#16417
Deprecate rcParams["datapath"] in favor of mpl.get_data_path().#16417anntzer wants to merge 1 commit intomatplotlib:masterfrom
Conversation
8059bdf to
7c7e3e7
Compare
7c7e3e7 to
9c5733e
Compare
9c5733e to
d63442e
Compare
|
👍 but the deprecation notes should go in the 3.2 file. I don't think this is going to backport cleanly as the "pull defaults from the sample file" logic is not on the 3.2.x branch. It may have to be re-written on that branch. |
|
that's fine, I'll open a separate pr for 3.2.1. |
d63442e to
a4a0925
Compare
|
let's wait for that other pr to be merged |
a4a0925 to
4c51645
Compare
|
looks like all's left after the rebase is just the changelog note? |
|
We should back out most of the changes from #16722 |
4c51645 to
c2451c6
Compare
|
Ah, I see, done. |
The rcParam cannot be meaningfully set by the end user from their matplotlibrc or Python code.
c2451c6 to
0cf039c
Compare
|
Commit message needs updating. |
|
I guess I vaguely lost track of the deprecation status here. The diff says "remove the datapath" kwarg, but it's clearly not actually removed, just deprecated? so this just removes the ability to set it in the matplotlibrc. But perhaps in that case we may as well wait for the entire deprecation period to be elapsed and strip out the rcparam all at once? |
|
So just wait for 3.4 then, and remove it all? |
|
I guess so, @tacaswell? |
|
Re-milestoned to 3.4 as this is going to take some time to sort out and remind our selves what is going on and it is better to leave a deprecating thing sitting around warning for an extra cycle that it is to pull the rug out from under someone accidentally. |
|
@tacaswell @anntzer can you figure out what needs to be done here? |
|
Are we fine with completely stripping out |
| - The ``pgf.debug``, ``verbose.fileo`` and ``verbose.verbose.level`` rcParams, | ||
| which had no effect, have been removed. | ||
| - Support for setting :rc:`mathtext.default` to "circled" has been removed. | ||
| - The ``datapath`` rcParam has been removed. Use `.get_data_path` instead. |
There was a problem hiding this comment.
| - The ``datapath`` rcParam has been removed. Use `.get_data_path` instead. | |
| - The ``datapath`` rcParam is ignored. Use `.get_data_path` instead. |
|
Yes to stripping out datapath for 3.4, we have given fair warning on this. |
|
Superseded by #19340. |
The rcParam cannot be meaningfully set by the end user from their
matplotlibrc or Python code.
PR Summary
PR Checklist