Title: Norms need scales for good colorbars... · Issue #16375 · matplotlib/matplotlib · GitHub
Open Graph Title: Norms need scales for good colorbars... · Issue #16375 · matplotlib/matplotlib
X Title: Norms need scales for good colorbars... · Issue #16375 · matplotlib/matplotlib
Description: Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not... LogNorm: log PowerNorm: no scale TwoSlopeNorm: no scale BoundaryNorm: shouldn't have a scale Instead of infe...
Open Graph Description: Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not... LogNorm: log PowerNorm: no scale TwoSlopeNorm: no scale BoundaryNorm...
X Description: Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not... LogNorm: log PowerNorm: no scale TwoSlopeNorm: no scale BoundaryNorm...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16375
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Norms need scales for good colorbars...","articleBody":"Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not...\r\n\r\n- `LogNorm`: `log`\r\n- `PowerNorm`: no scale\r\n- `TwoSlopeNorm`: no scale\r\n- `BoundaryNorm`: shouldn't have a scale\r\n\r\nInstead of inferring the first-class scale, I'd suggest we add a new property: `norm._scale` so that colorbar does not have to guess the scale. This should be a string so that it will only call registered scales, and it should be `None` when no scale is defined. \r\n\r\nIf its `None`, then colorbar will use the old default way of setting the scale. Otherwise it will set the scale using `ax.set_yscale(norm._scale)`. \r\n\r\nWe *probably* don't want the user to set this - if they want to change the colorbar scale, they can simply use the normal `ax.set_yscale` directly.\r\n","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2020-01-30T18:28:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/16375/matplotlib/issues/16375"}
| 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:59783165-aa96-e9b0-5923-ad5872981906 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B42:305E50:C2394C:11C3CE2:6A55FD68 |
| html-safe-nonce | 8ae9ee25ba7cc6d9f6dc36d8261a278a5c832dd09b9a654cf76e3b376abeb3f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjQyOjMwNUU1MDpDMjM5NEM6MTFDM0NFMjo2QTU1RkQ2OCIsInZpc2l0b3JfaWQiOiIxNDY2OTk0MTg5NjYxNTAyODI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 29506139c54fc2fb5e3210d5a06a3bf94dcb0296eb6cfdc5a083ecb8a39bc58c |
| hovercard-subject-tag | issue:557672939 |
| 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/16375/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55f1501a9dcfc6ee296b2cf7947d7fbb4f523208716f6f8229d15314d48b3ecf/matplotlib/matplotlib/issues/16375 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55f1501a9dcfc6ee296b2cf7947d7fbb4f523208716f6f8229d15314d48b3ecf/matplotlib/matplotlib/issues/16375 |
| og:image:alt | Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not... LogNorm: log PowerNorm: no scale TwoSlopeNorm: no scale BoundaryNorm... |
| 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 | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | ed27e29ef37c0e8f612ea3fed8118b955b8314e2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width