Skip to content

Avoid checking limits when updating both min and max for contours #26601

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

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Aug 25, 2023

PR summary

closes #26531

In #26531 (comment) @anntzer postulated that a better fix is possible, I'm open to one, but this works.

Note that I think there still could be some problems if updating vlims later on (this only addresses the setting in __init__).

It was also suggested to add an atomic update of both vmin and vmax (which only triggers changed once), but that is not yet implemented.

PR checklist

@oscargus oscargus added this to the v3.8.0 milestone Aug 25, 2023
@oscargus oscargus added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Aug 25, 2023
@anntzer
Copy link
Contributor

anntzer commented Aug 25, 2023

(The "better fix" I was thinking about was just adding the atomic vmin/vmax update.)

@QuLogic QuLogic merged commit 75ef6e2 into matplotlib:main Sep 6, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 6, 2023
QuLogic added a commit that referenced this pull request Sep 6, 2023
…601-on-v3.8.x

Backport PR #26601 on branch v3.8.x (Avoid checking limits when updating both min and max for contours)
@ksunden ksunden mentioned this pull request Sep 15, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ValueError thrown when levels is set to a lower value than vmin when using contours method of Axes
4 participants