Title: Colorbars need tests... · Issue #16398 · matplotlib/matplotlib · GitHub
Open Graph Title: Colorbars need tests... · Issue #16398 · matplotlib/matplotlib
X Title: Colorbars need tests... · Issue #16398 · matplotlib/matplotlib
Description: Follow up to #16280, we need tests for colorbars. i.e. @image_comparison( baseline_images=['colorbar_norms'], extensions=['png']) def test_cbar_norms(): # Test colormaps with different norms norms = [mcolors.Normalize(vmin=-1, vmax=2), m...
Open Graph Description: Follow up to #16280, we need tests for colorbars. i.e. @image_comparison( baseline_images=['colorbar_norms'], extensions=['png']) def test_cbar_norms(): # Test colormaps with different norms norms ...
X Description: Follow up to #16280, we need tests for colorbars. i.e. @image_comparison( baseline_images=['colorbar_norms'], extensions=['png']) def test_cbar_norms(): # Test colormaps with differ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16398
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Colorbars need tests...","articleBody":"Follow up to #16280, we need tests for colorbars. i.e.\r\n\r\n```python\r\n@image_comparison(\r\n baseline_images=['colorbar_norms'], extensions=['png'])\r\n def test_cbar_norms():\r\n # Test colormaps with different norms\r\n norms = [mcolors.Normalize(vmin=-1, vmax=2),\r\n mcolors.BoundaryNorm(boundaries=[-1, 0, 1], ncolors=4),\r\n mcolors.LogNorm(vmin=1, vmax=1e4),\r\n mcolors.PowerNorm(gamma=0.2, vmin=0.1, vmax=0.6),\r\n mcolors.SymLogNorm(1, vmin=-10, vmax=10),\r\n mcolors.TwoSlopeNorm(1, vmin=0, vmax=2)]\r\n fig, axs = plt.subplots(ncols=len(norms), constrained_layout=True)\r\n for ax, norm in zip(axs, norms):\r\n fig.colorbar(cm.ScalarMappable(norm=norm, cmap='viridis'), cax=ax, extend='both')\r\n```\r\n\r\nbut we can't do them yet because `SymLogNorm` (for instance) is not quite correct yet...\r\n\r\nSee also #16392, #16286 where this test originally came from...","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2020-02-03T17:41:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/16398/matplotlib/issues/16398"}
| 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:fbd49ab2-8fc4-93b9-2e39-5653e5683ffb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E770:38AD8F:222661D:317FFFB:6A565AFC |
| html-safe-nonce | aa58925517487c698c21006e45f8c51f10a556736ced75622b59760c19b8236c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzcwOjM4QUQ4RjoyMjI2NjFEOjMxN0ZGRkI6NkE1NjVBRkMiLCJ2aXNpdG9yX2lkIjoiODI2MTgyNTA1NTQ0Njk0ODYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b1a86e77a4d39b892530896578ea30c13586e93bbf4a2c8cf73541dbf2a6cbd8 |
| hovercard-subject-tag | issue:559232895 |
| 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/16398/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92cba0f10d719d16439b30f2bed53497842ae644b8144d6292f3fe92789664a1/matplotlib/matplotlib/issues/16398 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92cba0f10d719d16439b30f2bed53497842ae644b8144d6292f3fe92789664a1/matplotlib/matplotlib/issues/16398 |
| og:image:alt | Follow up to #16280, we need tests for colorbars. i.e. @image_comparison( baseline_images=['colorbar_norms'], extensions=['png']) def test_cbar_norms(): # Test colormaps with different norms norms ... |
| 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 | 6a3afe34dff341ad10912db44becf282289d7f2af20576241738530fbb28de01 |
| 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 | b71002134df95575e9f6c2945a64d454b0be181e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width