Title: Make contour and contourf color assignments consistent. by efiring · Pull Request #11412 · matplotlib/matplotlib · GitHub
Open Graph Title: Make contour and contourf color assignments consistent. by efiring · Pull Request #11412 · matplotlib/matplotlib
X Title: Make contour and contourf color assignments consistent. by efiring · Pull Request #11412 · matplotlib/matplotlib
Description: PR Summary This is derived from, and replaces, #8834. Selection of contour levels is now the same for contour and contourf; previously, for contour, levels outside the data range were deleted. (Exception: if no contour levels are found within the data range, the levels attribute is replaced with a list holding only the minimum of the data range.) When contour is called with levels specified as a target number rather than a list, and the 'extend' kwarg is used, the levels are now chosen such that some data typically will fall in the extended range. When contour is called with a LogNorm or a LogLocator, it will now select colors using the geometric mean rather than the arithmetic mean of the contour levels. Closes #10572. An unfortunate side effect is that many test images have to be changed because they happen to use colored line contours generated via the minimal call to contour for which the behavior is changed by this PR. PR Checklist Has Pytest style unit tests Code is PEP 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary This is derived from, and replaces, #8834. Selection of contour levels is now the same for contour and contourf; previously, for contour, levels outside the data range were deleted. (Ex...
X Description: PR Summary This is derived from, and replaces, #8834. Selection of contour levels is now the same for contour and contourf; previously, for contour, levels outside the data range were deleted. (Ex...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/11412
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ec30c4bb-7e98-28ab-cb46-fbc6c165bdfc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A32C:3026A5:10D0A95:189DDB3:6A577355 |
| html-safe-nonce | a55c676f514c2cc5d8913febe4907385961ffed7d5b9328f054ae7e697327feb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzJDOjMwMjZBNToxMEQwQTk1OjE4OUREQjM6NkE1NzczNTUiLCJ2aXNpdG9yX2lkIjoiNDg5OTk0MTMxNTc2MzQ2NzA5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 930cac1671640a4182c11af4c6add083949b75c13d99255b2a287ae93e80dbdc |
| hovercard-subject-tag | pull_request:193852175 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/11412/files |
| twitter:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| og:image:alt | PR Summary This is derived from, and replaces, #8834. Selection of contour levels is now the same for contour and contourf; previously, for contour, levels outside the data range were deleted. (Ex... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width