Title: heatmap bricks on log axes · Issue #5991 · plotly/plotly.js · GitHub
Open Graph Title: heatmap bricks on log axes · Issue #5991 · plotly/plotly.js
X Title: heatmap bricks on log axes · Issue #5991 · plotly/plotly.js
Description: From the discussion that came up in #5985 - that PR proposed 4 contour plots - on a mixture of log and linear axes - that should look identical but didn't, until fixed in the PR. If we make the same plots as a smoothed heatmap, they look...
Open Graph Description: From the discussion that came up in #5985 - that PR proposed 4 contour plots - on a mixture of log and linear axes - that should look identical but didn't, until fixed in the PR. If we make the sam...
X Description: From the discussion that came up in #5985 - that PR proposed 4 contour plots - on a mixture of log and linear axes - that should look identical but didn't, until fixed in the PR. If we make the...
Opengraph URL: https://github.com/plotly/plotly.js/issues/5991
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"heatmap bricks on log axes","articleBody":"From the discussion that came up in #5985 - that PR proposed 4 contour plots - on a mixture of log and linear axes - that should look identical but didn't, until fixed in the PR. If we make the same plots as a smoothed heatmap, they look identical as far as the smoothing goes, but we lose the first row of bricks on each log axis because its far edge would be at a negative coordinate:\r\n\r\n> Also closer to what we already do with smoothed heatmaps (the same mock after `Plotly.restyle(gd,{'type':'heatmap', 'zsmooth':'best'})` - the four variants look slightly different but I think this is actually a symptom of some funny and potentially incorrect things we're doing with extending beyond the data values to make the outer edges of the heatmap bricks - we may want to adapt this for log axes too, especially as this results in us dropping the first row/column in this case!):\r\n> \r\n\r\nCan we do a better job of picking brick edges in this case?\r\n\r\nThe figure above would be:\r\n\r\n```\r\n{\r\n \"data\": [\r\n {\r\n \"x\": [1,2,3,4,5],\r\n \"y\": [1,2,3,4,5],\r\n \"z\": [\r\n [0 , 3.1250, 12.5000, 28.1250, 50.0000],\r\n [3.1250, 6.2500, 15.6250, 31.2500, 53.1250],\r\n [12.5000, 15.6250, 25.0000, 40.6250, 62.5000],\r\n [28.1250, 31.2500, 40.6250, 56.2500, 78.1250],\r\n [50.0000, 53.1250, 62.5000, 78.1250, 100.0000]\r\n ],\r\n \"zsmooth\": \"best\",\r\n \"type\": \"heatmap\"\r\n },\r\n {\r\n \"x\": [1,10,100,1000,10000],\r\n \"y\": [1,2,3,4,5],\r\n \"z\": [\r\n [0 , 3.1250, 12.5000, 28.1250, 50.0000],\r\n [3.1250, 6.2500, 15.6250, 31.2500, 53.1250],\r\n [12.5000, 15.6250, 25.0000, 40.6250, 62.5000],\r\n [28.1250, 31.2500, 40.6250, 56.2500, 78.1250],\r\n [50.0000, 53.1250, 62.5000, 78.1250, 100.0000]\r\n ],\r\n \"zsmooth\": \"best\",\r\n \"type\": \"heatmap\",\r\n \"showscale\": false,\r\n \"xaxis\": \"x2\"\r\n },\r\n {\r\n \"x\": [1,2,3,4,5],\r\n \"y\": [1,10,100,1000,10000],\r\n \"z\": [\r\n [0 , 3.1250, 12.5000, 28.1250, 50.0000],\r\n [3.1250, 6.2500, 15.6250, 31.2500, 53.1250],\r\n [12.5000, 15.6250, 25.0000, 40.6250, 62.5000],\r\n [28.1250, 31.2500, 40.6250, 56.2500, 78.1250],\r\n [50.0000, 53.1250, 62.5000, 78.1250, 100.0000]\r\n ],\r\n \"zsmooth\": \"best\",\r\n \"type\": \"heatmap\",\r\n \"showscale\": false,\r\n \"yaxis\": \"y2\"\r\n },\r\n {\r\n \"x\": [1,10,100,1000,10000],\r\n \"y\": [1,10,100,1000,10000],\r\n \"z\": [\r\n [0 , 3.1250, 12.5000, 28.1250, 50.0000],\r\n [3.1250, 6.2500, 15.6250, 31.2500, 53.1250],\r\n [12.5000, 15.6250, 25.0000, 40.6250, 62.5000],\r\n [28.1250, 31.2500, 40.6250, 56.2500, 78.1250],\r\n [50.0000, 53.1250, 62.5000, 78.1250, 100.0000]\r\n ],\r\n \"zsmooth\": \"best\",\r\n \"type\": \"heatmap\",\r\n \"showscale\": false,\r\n \"xaxis\": \"x2\",\r\n \"yaxis\": \"y2\"\r\n }\r\n ],\r\n \"layout\": {\r\n \"xaxis\": {\"domain\": [0, 0.45]},\r\n \"xaxis2\": {\"domain\": [0.55, 1], \"type\": \"log\"},\r\n \"yaxis\": {\"domain\": [0, 0.45]},\r\n \"yaxis2\": {\"domain\": [0.55, 1], \"type\": \"log\"},\r\n \"margin\": {\"l\": 50, \"b\": 50, \"r\": 110, \"t\": 10},\r\n \"width\": 500,\r\n \"height\": 400\r\n }\r\n}\r\n```","author":{"url":"https://github.com/alexcjohnson","@type":"Person","name":"alexcjohnson"},"datePublished":"2021-10-19T16:48:03Z","url":"https://github.com/plotly/plotly.js/issues/5991"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:77631f3e-f712-816b-a022-8b69079679a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C65E:38EE04:85C10F:B0F9B8:6B01AF60 |
| html-safe-nonce | 3ea15d96f2b1fb99d5b46c4b35da785fc5284abca01a6267f71f30a56820130d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjVFOjM4RUUwNDo4NUMxMEY6QjBGOUI4OjZCMDFBRjYwIiwidmlzaXRvcl9pZCI6IjI0MTM3NDY2OTg0NTIwNTM4NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4e03c4e01602d4a25b9bfbf645dbdd83ad12612d6597ee80d85b1ce1adbb3312 |
| hovercard-subject-tag | issue:1030533412 |
| 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/5991/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b43387fe231948bb69c561b1b815ea533d0f651cb5d23987ab77242419534aa/plotly/plotly.js/issues/5991 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b43387fe231948bb69c561b1b815ea533d0f651cb5d23987ab77242419534aa/plotly/plotly.js/issues/5991 |
| og:image:alt | From the discussion that came up in #5985 - that PR proposed 4 contour plots - on a mixture of log and linear axes - that should look identical but didn't, until fixed in the PR. If we make the sam... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexcjohnson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width