Title: [Doc]: Contour functions: auto-generated levels · Issue #24121 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Contour functions: auto-generated levels · Issue #24121 · matplotlib/matplotlib
X Title: [Doc]: Contour functions: auto-generated levels · Issue #24121 · matplotlib/matplotlib
Description: 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 and contour/f. The doc...
Open Graph Description: 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 applie...
X Description: 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 applie...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24121
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Contour functions: auto-generated levels","articleBody":"### Documentation Link\r\n\r\nhttps://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.contourf.html\r\nhttps://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.tricontourf.html\r\n\r\n### Problem\r\n\r\nThis applies to `tricontour/f` and `contour/f`.\r\n\r\nThe documentation of the contour functions' `levels` parameter states:\r\n\r\n```\r\n If an int *n*, use `~matplotlib.ticker.MaxNLocator`, which tries\r\n to automatically choose no more than *n+1* \"nice\" contour levels\r\n between *vmin* and *vmax*.\r\n```\r\n\r\nThis is not true, the levels are always chosen betwen `Z.min()` and `Z.max()`. There is no way for the user to influence this when using the integer parameter variant. See implementation in `contour.py`: `ContourSet._autolev()`.\r\nEspecially deceptive because the text as written is very much what one would expect, but that functionality does not exist (and never has).\r\n\r\n### Suggested improvement\r\n\r\nChange \"between *vmin* and *vmax*\" to something like \"in the data range\" or more explicit \"between minimum and maximum values of *Z*\"","author":{"url":"https://github.com/martok","@type":"Person","name":"martok"},"datePublished":"2022-10-07T18:43:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/24121/matplotlib/issues/24121"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b2c8a9d-0611-e116-be2c-4eeee33ba099 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3D8:28B50A:ACCDCF1:B022FF4:6A50B118 |
| html-safe-nonce | 56806228fee6f12aab8a3d4292552a790f26cdbbeda643bcb9c36fd68cf87840 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Q4OjI4QjUwQTpBQ0NEQ0YxOkIwMjJGRjQ6NkE1MEIxMTgiLCJ2aXNpdG9yX2lkIjoiNjM2MzAwMTAyNDcwNzc1MDY1IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 96aa5d563144a7808a2a9932291d7874385ccbc092f9f0402ce788ce1abe563d |
| hovercard-subject-tag | issue:1401548781 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/406efc37537c633cf5aea0437b568052b58f057173c8167cf4e11b47e4857ba9/matplotlib/matplotlib/issues/24121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/406efc37537c633cf5aea0437b568052b58f057173c8167cf4e11b47e4857ba9/matplotlib/matplotlib/issues/24121 |
| og:image:alt | 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 applie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martok |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width