Title: New colorbar doesn't handle norms without a scale properly... · Issue #20324 · matplotlib/matplotlib · GitHub
Open Graph Title: New colorbar doesn't handle norms without a scale properly... · Issue #20324 · matplotlib/matplotlib
X Title: New colorbar doesn't handle norms without a scale properly... · Issue #20324 · matplotlib/matplotlib
Description: As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do not have a scale associated with them are not being ticked properly. import matplotlib.pyplot as plt import numpy as np import matplotlib.colors as...
Open Graph Description: As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do not have a scale associated with them are not being ticked properly. import matplotlib.pyplot as plt import...
X Description: As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do not have a scale associated with them are not being ticked properly. import matplotlib.pyplot as plt import...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New colorbar doesn't handle norms without a scale properly...","articleBody":"As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do *not* have a scale associated with them are not being ticked properly. \r\n\r\n```\r\nimport matplotlib.pyplot as plt \r\nimport numpy as np\r\nimport matplotlib.colors as mcolors\r\n\r\nfig, ax = plt.subplots()\r\n\r\npc = ax.imshow(np.arange(100).reshape(10, 10), norm=mcolors.TwoSlopeNorm(20, 0, 100), cmap='RdBu_r')\r\n\r\ncb = fig.colorbar(pc, extend='both')\r\nplt.show()\r\n\r\n```\r\n\r\n### 3.4.2 (correct)\r\n\r\n\r\n\r\n### Master (incorrect)\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2021-05-28T19:13:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/20324/matplotlib/issues/20324"}
| 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:88db0ce6-028e-2181-4753-71830968b979 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C116:242349:55457:72261:6A52B77A |
| html-safe-nonce | 2f37436b59ef108d95c9efd5b4fc61b794a87b85d20ed2d20bc0e6dddef56dda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTE2OjI0MjM0OTo1NTQ1Nzo3MjI2MTo2QTUyQjc3QSIsInZpc2l0b3JfaWQiOiIyOTgzMzQxNDc3MzY5OTE5MzU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c39cb8487f78d3b57ac8b60860b1210c1ca65b0e13ab5993dea462fc6c7c325f |
| hovercard-subject-tag | issue:905916999 |
| 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/20324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3578c7109ee780bdba4be6172419fd5ef757ecdeeec25d993f71add2403b92c/matplotlib/matplotlib/issues/20324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3578c7109ee780bdba4be6172419fd5ef757ecdeeec25d993f71add2403b92c/matplotlib/matplotlib/issues/20324 |
| og:image:alt | As reported at astropy by @dstansby: (astropy/astropy#11800) colorbars with norms that do not have a scale associated with them are not being ticked properly. import matplotlib.pyplot as plt import... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width