Title: reversescale doesn't reverse colorbar on contour plot with coloring='heatmap' · Issue #4430 · plotly/plotly.js · GitHub
Open Graph Title: reversescale doesn't reverse colorbar on contour plot with coloring='heatmap' · Issue #4430 · plotly/plotly.js
X Title: reversescale doesn't reverse colorbar on contour plot with coloring='heatmap' · Issue #4430 · plotly/plotly.js
Description: Bug reversescale: True doesn't reverse the colorbar on a contour plot with {contours: {coloring: 'heatmap'}}. In the plot below, the colorbar indicates the red region has larger values, but it actually has smaller values. Code var data =...
Open Graph Description: Bug reversescale: True doesn't reverse the colorbar on a contour plot with {contours: {coloring: 'heatmap'}}. In the plot below, the colorbar indicates the red region has larger values, but it actu...
X Description: Bug reversescale: True doesn't reverse the colorbar on a contour plot with {contours: {coloring: 'heatmap'}}. In the plot below, the colorbar indicates the red region has larger values,...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4430
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"reversescale doesn't reverse colorbar on contour plot with coloring='heatmap'","articleBody":"### Bug\r\n\r\n`reversescale: True` doesn't reverse the colorbar on a contour plot with `{contours: {coloring: 'heatmap'}}`.\r\n\r\nIn the plot below, the colorbar indicates the red region has larger values, but it actually has smaller values.\r\n\r\n\r\n\r\n### Code\r\n\r\n```javascript\r\nvar data = [{\r\n z: [[10, 10.625, 12.5, 15.625, 20],\r\n [5.625, 6.25, 8.125, 11.25, 15.625],\r\n [2.5, 3.125, 5., 8.125, 12.5],\r\n [0.625, 1.25, 3.125, 6.25, 10.625],\r\n [0, 0.625, 2.5, 5.625, 10]],\r\n x: [-9, -6, -5 , -3, -1],\r\n y: [0, 1, 4, 5, 7],\r\n type: 'contour',\r\n contours: {\r\n coloring: 'heatmap'\r\n },\r\n reversescale: true,\r\n}];\r\n\r\nvar layout = {\r\n title: 'Setting the X and Y Coordinates in a Contour Plot'\r\n};\r\n\r\nPlotly.newPlot('myDiv', data, layout);\r\n```\r\n \r\n### Codepen\r\nhttps://codepen.io/harupy/pen/bGNgBOz","author":{"url":"https://github.com/harupy","@type":"Person","name":"harupy"},"datePublished":"2019-12-18T07:20:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4430/plotly.js/issues/4430"}
| 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:865860f9-9a97-8157-84a6-520462c99504 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC60:243EEA:1832F6B:213C204:6A572E6E |
| html-safe-nonce | d89a683c972f1fb5d56e4f44e2be3d57cee1fb85d1435d73aff9670569032390 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzYwOjI0M0VFQToxODMyRjZCOjIxM0MyMDQ6NkE1NzJFNkUiLCJ2aXNpdG9yX2lkIjoiODQzODk3MzI3MDc4ODA5MTUwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d839815cc0357e6491afd88b62cfd9d1802c0b7b0a9448f22cfa79c5458fdfb4 |
| hovercard-subject-tag | issue:539502841 |
| 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/plotly/plotly.js/4430/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6db7bd2b1fed76289639afb1828ad70e9b347f54866f7f8ab163c3aca3d22e7/plotly/plotly.js/issues/4430 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6db7bd2b1fed76289639afb1828ad70e9b347f54866f7f8ab163c3aca3d22e7/plotly/plotly.js/issues/4430 |
| og:image:alt | Bug reversescale: True doesn't reverse the colorbar on a contour plot with {contours: {coloring: 'heatmap'}}. In the plot below, the colorbar indicates the red region has larger values, but it actu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | harupy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width