-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Doc]: Contour functions: auto-generated levels #24121
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
Comments
Thanks @martok. Do you want to make a pull request? |
I think we should check if the docs were right at some point in the past though. Its possible we accidentally changed behaviour sometime recently? I haven't had time to check... |
The doc-string came in #16534 where it was modified from
so it may indeed be that vmin and vmax are guesses (although possibly educated ones). |
And I've traced it back through blames all the way since it was introduced in 2004,
I mean, they're good guesses. Since vmin and vmax configure the norm they act as a kind of "implied zlim" for all other heatmap-style functions. Just not this one. |
Closed by #24130 |
Documentation Link
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.contourf.html
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.tricontourf.html
Problem
This applies to
tricontour/f
andcontour/f
.The documentation of the contour functions'
levels
parameter states:This is not true, the levels are always chosen betwen
Z.min()
andZ.max()
. There is no way for the user to influence this when using the integer parameter variant. See implementation incontour.py
:ContourSet._autolev()
.Especially deceptive because the text as written is very much what one would expect, but that functionality does not exist (and never has).
Suggested improvement
Change "between vmin and vmax" to something like "in the data range" or more explicit "between minimum and maximum values of Z"
The text was updated successfully, but these errors were encountered: