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

Skip to content

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Sep 8, 2025

from "from_list" to "unnamed", which makes more sense logically.

While technically a breaking change, I anticipate that nobody is relying
on that default value.

Part of #29141.

from "from_list" to "unnamed", which makes more sense logically.

While technically a breaking change, I anticipate that nobody is relying
 on that default value.
@timhoffm timhoffm force-pushed the listedcolormap-name branch from 2a8c8e0 to 2dd8175 Compare September 8, 2025 22:02
@timhoffm timhoffm mentioned this pull request Sep 8, 2025
8 tasks
@tacaswell tacaswell added this to the v3.11.0 milestone Sep 9, 2025
@tacaswell
Copy link
Member

The one failure is #30534 , not going to re-run tests to verify that the fix merged to main fixes this before merging.

@tacaswell tacaswell merged commit feecb27 into matplotlib:main Sep 9, 2025
37 of 39 checks passed
@tacaswell
Copy link
Member

I have some reservations, but on balance I am 👍🏻 on this change.

@timhoffm timhoffm deleted the listedcolormap-name branch September 9, 2025 14:39
@timhoffm
Copy link
Member Author

timhoffm commented Sep 9, 2025

Trying to confirm my "nobody would rely on this rather brittle information" assumtion, I found one actual usage:

https://github.com/earthlab/earthpy/blob/f655c0cf7ebc048fac465043bd243a1c1739e5d3/earthpy/plot.py#L714

and two likely out-of date usages (repo not updated for two 2 years)

https://github.com/jasperroebroek/geomappy/blob/4fbf41f52befd0155a071d6558f2d0549e0c7454/tests/test_classified_params.py#L10
https://github.com/timothygebhard/hsr4hci/blob/f5ec893b7f6cfa4b64d0dc94bd3c9888af4af94e/tests/unit/test_plotting.py#L63

What does this mean? Should we

a. revert and leave this be or
b. revert and do a proper deprecation
c. notify the downstream usage

@tacaswell
Copy link
Member

I think option C.

In the first one it looks like the check is a bit redundant anyway and the other two are in tests so it will affect developers, but not their users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants