Title: WIP: Add offset normalizer by phobson · Pull Request #3858 · matplotlib/matplotlib · GitHub
Open Graph Title: WIP: Add offset normalizer by phobson · Pull Request #3858 · matplotlib/matplotlib
X Title: WIP: Add offset normalizer by phobson · Pull Request #3858 · matplotlib/matplotlib
Description: Trying to close #1806 Not currently on a good machine for development, but I think this pretty straight-forward, so hopefully Travis a test runner will suffice... OffsetNorm: This let's you set vmin, vcenter, and vmax. The use case for this is when you have data ranging from e.g., -1, to +2, and you want the the white/gray part at 0, but would also like to use the full range of the red scale. So: offset = mcolors.OffsetNorm(vmin=-1, vcenter=0, vmax=2) offset([-1.0, -0.5, 0.0, 1.0, 2.,]) #prints [0, 0.25, 0.5, 0.75, 1.0] Next I'll add SymNorm, that will look at the absolute values of vmin and vmax to produce: sym = mcolors.SymNorm(vmin=-1, vcenter=0, vmax=2) sym([-1.0, -0.5, 0.0, 1.0, 2.,]) #prints [0.25, 0.325, 0.5, 0.75, 1.0]
Open Graph Description: Trying to close #1806 Not currently on a good machine for development, but I think this pretty straight-forward, so hopefully Travis a test runner will suffice... OffsetNorm: This let's you se...
X Description: Trying to close #1806 Not currently on a good machine for development, but I think this pretty straight-forward, so hopefully Travis a test runner will suffice... OffsetNorm: This let's yo...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/3858
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a5c08d4b-1ee9-7370-fb01-1d5b08d26774 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 82F2:34F7A0:43C3439:5E0E2BD:6A54E106 |
| html-safe-nonce | cdd7d32223e992aea36ba9831ad45cf340a0024792d861de259242e815a0f986 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkYyOjM0RjdBMDo0M0MzNDM5OjVFMEUyQkQ6NkE1NEUxMDYiLCJ2aXNpdG9yX2lkIjoiNTAxMjEyNjk1MjQ1NjUxMTc1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 721ecd4d5c11fba5804aab2fca552321c3c02a46e1137dfde22c015e6826cb43 |
| hovercard-subject-tag | pull_request:25161212 |
| 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/3858/files |
| twitter:image | https://avatars.githubusercontent.com/u/1163939?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1163939?s=400&v=4 |
| og:image:alt | Trying to close #1806 Not currently on a good machine for development, but I think this pretty straight-forward, so hopefully Travis a test runner will suffice... OffsetNorm: This let's you se... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 00f21e38abd06cd6752db5c227083570f72fdb6c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width