🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@timhoffm
Copy link
Member

@timhoffm timhoffm commented Sep 8, 2025

Per #29141 we have the long-term plan to make colormaps immutable. As a result, the in-place modifications have to be removed. We take this particularly slow with at least two minor releases of pending deprecation and two further releases of actual deprecations. As it's quite a common concept and migrating away will take time.

@timhoffm timhoffm force-pushed the deprecate-cmap-extreme-setter branch from 0ff2086 to b83c694 Compare September 8, 2025 21:20
@timhoffm timhoffm changed the title MNT: Pending-deprecate setting colormap extremes MNT: Pending-deprecate setting colormap extremes in-place Sep 8, 2025
@timhoffm timhoffm force-pushed the deprecate-cmap-extreme-setter branch from b83c694 to e2090f4 Compare September 8, 2025 21:23
@timhoffm timhoffm mentioned this pull request Sep 8, 2025
8 tasks
@anntzer
Copy link
Contributor

anntzer commented Sep 16, 2025

CI is legitimately failing (in particular because with_extremes is currently implemented in terms of set_foo (on a copy)).

@timhoffm
Copy link
Member Author

Some of the test failures due to the deprecation are difficult to manage with the current architectue. I've done a fefactoring in #30577 which will make this much simpler. Putting to draft until that is merged.

@timhoffm timhoffm marked this pull request as draft September 17, 2025 21:42
@QuLogic QuLogic self-requested a review September 18, 2025 05:27
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Sep 18, 2025
Instead use the more modern ways to specify extremes during Colormap
creation or using `with_extremes()`

This is in preparation of deprecating setters in matplotlib#30531.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Sep 18, 2025
Instead use the more modern ways to specify extremes during Colormap
creation or using `with_extremes()`

This is in preparation of deprecating setters in matplotlib#30531.
@timhoffm timhoffm force-pushed the deprecate-cmap-extreme-setter branch from bf856a0 to 07a46b2 Compare September 20, 2025 08:54
Per matplotlib#29141 we have the long-term plan to make colormaps immutable. As a
result, the in-place modifications have to be removed. We take this
particularly slow with at least two minor releases of pending
deprecation and two further releases of actual deprecations. As it's
quite a common concept and migrating away will take time.
@timhoffm timhoffm force-pushed the deprecate-cmap-extreme-setter branch from 07a46b2 to 224828f Compare September 21, 2025 13:54
@timhoffm timhoffm marked this pull request as ready for review September 21, 2025 15:20
@timhoffm timhoffm added this to the v3.11.0 milestone Sep 27, 2025
@QuLogic QuLogic merged commit 56c18a4 into matplotlib:main Oct 2, 2025
40 checks passed
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