Title: Strange behavior of extended contourf colors in a figure with multiple axes · Issue #13038 · matplotlib/matplotlib · GitHub
Open Graph Title: Strange behavior of extended contourf colors in a figure with multiple axes · Issue #13038 · matplotlib/matplotlib
X Title: Strange behavior of extended contourf colors in a figure with multiple axes · Issue #13038 · matplotlib/matplotlib
Description: I am creating a figure with 6 filled contour plots and a color bar (so, 7 axes total). The function creating the figure loops over a list of variable pairs and arranges the axes in 3x2 pattern with colorbar at the bottom, with a call to ...
Open Graph Description: I am creating a figure with 6 filled contour plots and a color bar (so, 7 axes total). The function creating the figure loops over a list of variable pairs and arranges the axes in 3x2 pattern with...
X Description: I am creating a figure with 6 filled contour plots and a color bar (so, 7 axes total). The function creating the figure loops over a list of variable pairs and arranges the axes in 3x2 pattern with...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13038
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange behavior of extended contourf colors in a figure with multiple axes","articleBody":"I am creating a figure with 6 filled contour plots and a color bar (so, 7 axes total). The function creating the figure loops over a list of variable pairs and arranges the axes in 3x2 pattern with colorbar at the bottom, with a call to figure.colorbar at the end taking the last contourf call's output as leading input.\r\n\r\nThe problem - all out-of-range colors appear to be colored in as the \"adjacent\" color in the colorbar, *except* for the very last contourf plot, which seems to work as expected. But, commenting out the line that creates the colorbar results in the last plot also being broken (no \"extended\" colors).\r\n\r\nAll of the calls to contourf (inside of the loop) look like this; the levels and corresponding colors are fixed\r\n`plot = axes.contourf(aggregates_xs, aggregates_ys, aggregates_zs, color_levels, colors = color_values, extend = 'both'`\r\n`plot.cmap.set_over('red')`\r\n`plot.cmap.set_under('blue')`\r\n\r\nmatplotlib version 3.0.2 (same behavior in 2.0.2, but I didn't guess to try removing the colorbar before updating)","author":{"url":"https://github.com/alexlimonov","@type":"Person","name":"alexlimonov"},"datePublished":"2018-12-22T06:09:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/13038/matplotlib/issues/13038"}
| 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:40c8c80a-8a2b-be85-8d9f-a6c14d864976 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED40:B0958:D94CC4:11CD90A:6A519613 |
| html-safe-nonce | 0ee5c749c6c1473ef792c1436e91c2ed620203deef65d4423263bb2ad64e9201 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDQwOkIwOTU4OkQ5NENDNDoxMUNEOTBBOjZBNTE5NjEzIiwidmlzaXRvcl9pZCI6IjY3MjE1Njg1NTk4NDgyMTc3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3329e55e30bef8356a529acae13486609420e5ff2b85403280cdf5b5ce40e20b |
| hovercard-subject-tag | issue:393646869 |
| 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/13038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b41eeeb76aa44cc5a3e2925bbed77f835fd52d823d3989d2cc2670b0931f9f4/matplotlib/matplotlib/issues/13038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b41eeeb76aa44cc5a3e2925bbed77f835fd52d823d3989d2cc2670b0931f9f4/matplotlib/matplotlib/issues/13038 |
| og:image:alt | I am creating a figure with 6 filled contour plots and a color bar (so, 7 axes total). The function creating the figure loops over a list of variable pairs and arranges the axes in 3x2 pattern with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexlimonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width