Title: Smarter defaults for axis anchors · Issue #1200 · plotly/plotly.js · GitHub
Open Graph Title: Smarter defaults for axis anchors · Issue #1200 · plotly/plotly.js
X Title: Smarter defaults for axis anchors · Issue #1200 · plotly/plotly.js
Description: We could be smarter about axis anchors for subplots, basing their default values off the traces we have. In a new mock I made for date axes, there are 7 stacked subplots, each with one trace and its own x and y axes. All the traces have:...
Open Graph Description: We could be smarter about axis anchors for subplots, basing their default values off the traces we have. In a new mock I made for date axes, there are 7 stacked subplots, each with one trace and it...
X Description: We could be smarter about axis anchors for subplots, basing their default values off the traces we have. In a new mock I made for date axes, there are 7 stacked subplots, each with one trace and it...
Opengraph URL: https://github.com/plotly/plotly.js/issues/1200
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Smarter defaults for axis anchors","articleBody":"We could be smarter about axis anchors for subplots, basing their default values off the traces we have.\r\n\r\nIn a new mock I made for [date axes](https://github.com/plotly/plotly.js/pull/1194/commits/87786480858e8f54532ff2a9330697ff8a3bf076), there are 7 stacked subplots, each with one trace and its own x and y axes. All the traces have:\r\n`xaxis: 'x\u003cn\u003e', yaxis: 'y\u003cn\u003e'`\r\nand all the x axes have layout obects:\r\n`xaxis\u003cn\u003e: {anchor: 'y\u003cn\u003e'}`\r\n\r\nWith smarter defaults, I would not have needed to include these x axis objects at all since `'x\u003cn\u003e'` is only ever used with `'y\u003cn\u003e'` in the data. In fact, in principle my y axes should also be anchored to the corresponding x axes... I didn't do that, and it didn't matter here because all the x axes have domain `[0, 1]`, but if I **were** to change some of these domains, then I would be in for some confusion as the y axes wouldn't move as I would expect.\r\n\r\nThis would not be backward compatible, so I guess should be included in v2.0 if we do it, but I can't really think of a situation where people would be depending on the existing defaults.","author":{"url":"https://github.com/alexcjohnson","@type":"Person","name":"alexcjohnson"},"datePublished":"2016-11-25T23:22:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1200/plotly.js/issues/1200"}
| 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:7b34ebf5-d75b-ba85-5301-99324e6ca722 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEEC:370F42:15B733:1CE5F6:6A551DDA |
| html-safe-nonce | 893e9465f4f3647c9f5036510845300c48796d467249bca36583299518f8a08f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVDOjM3MEY0MjoxNUI3MzM6MUNFNUY2OjZBNTUxRERBIiwidmlzaXRvcl9pZCI6IjU1MzkwODU0NzUwNzQzNTA1NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c730601e691385a9a3dc807d579d6ae8aeea9d9f56739f300902ae039f35bd9 |
| hovercard-subject-tag | issue:191774450 |
| 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/1200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4781315d580b4206779e6b56f0a00f04ccc5625bb0bfe8b978b34a7d5cd87371/plotly/plotly.js/issues/1200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4781315d580b4206779e6b56f0a00f04ccc5625bb0bfe8b978b34a7d5cd87371/plotly/plotly.js/issues/1200 |
| og:image:alt | We could be smarter about axis anchors for subplots, basing their default values off the traces we have. In a new mock I made for date axes, there are 7 stacked subplots, each with one trace and it... |
| 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 | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width