Title: Setting only min or max values for axis and not a range. · Issue #400 · plotly/plotly.js · GitHub
Open Graph Title: Setting only min or max values for axis and not a range. · Issue #400 · plotly/plotly.js
X Title: Setting only min or max values for axis and not a range. · Issue #400 · plotly/plotly.js
Description: Dear all Many thanks for all your wonderful efforts with Plotly I just wanted to ask if it might be possible to tweak the range function a little currently an axis range can be set in the layout like this ... layout = go.Layout( xaxis=di...
Open Graph Description: Dear all Many thanks for all your wonderful efforts with Plotly I just wanted to ask if it might be possible to tweak the range function a little currently an axis range can be set in the layout li...
X Description: Dear all Many thanks for all your wonderful efforts with Plotly I just wanted to ask if it might be possible to tweak the range function a little currently an axis range can be set in the layout li...
Opengraph URL: https://github.com/plotly/plotly.js/issues/400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting only min or max values for axis and not a range.","articleBody":"Dear all\r\n\r\nMany thanks for all your wonderful efforts with Plotly\r\n\r\nI just wanted to ask if it might be possible to tweak the range function a little\r\n\r\ncurrently an axis range can be set in the layout like this ...\r\n```\r\nlayout = go.Layout(\r\nxaxis=dict(\r\nrange=[2, 5]\r\n),\r\n```\r\nin some cases it would be desirable to only specify a min value.\r\nPlotly can then work out the max value automatically.\r\n\r\nOr perhaps a user would want to set a max value and have a plotly work out the min value\r\n\r\nEither-way it would be nice (for me at least) to only specify one of the range limits and not both. However I can see why this might not be a highly required function and I'm sure there are lots of other things to do first\r\n\r\nmatplotlib offers this function ...\r\n```\r\nplt.xlim(2,5) #sets a range\r\nplt.gca().set_xlim(xmin=2) # sets only the lower x value and allows computer to work out upper value\r\nplt.gca().set_ylim(ymax=50) # sets only the lower y value and allows computer to work out upper value\r\n```","author":{"url":"https://github.com/shimwell","@type":"Person","name":"shimwell"},"datePublished":"2016-04-06T17:02:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":26},"url":"https://github.com/400/plotly.js/issues/400"}
| 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:f143a23e-5477-a6ca-091b-22f6a0347e05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8576:3DFB1A:B8F19B:1050811:6A588A8A |
| html-safe-nonce | d9273e9fa11e23fc2af1e8337409fa2719cfe2beced8b20b1016aee3dacd0a64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTc2OjNERkIxQTpCOEYxOUI6MTA1MDgxMTo2QTU4OEE4QSIsInZpc2l0b3JfaWQiOiI2MTM2Mzg2NDQzNzg1MzA4ODExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 13879060a287713674bbe773b2b65cec8ff4c6ca509ed0e0bc7fa1eea8eefde7 |
| hovercard-subject-tag | issue:146374446 |
| 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/400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/192f8dde8d30e2c141118238345d62c9e1758c4d615dfdb3dcd655cffeb90b83/plotly/plotly.js/issues/400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/192f8dde8d30e2c141118238345d62c9e1758c4d615dfdb3dcd655cffeb90b83/plotly/plotly.js/issues/400 |
| og:image:alt | Dear all Many thanks for all your wonderful efforts with Plotly I just wanted to ask if it might be possible to tweak the range function a little currently an axis range can be set in the layout li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shimwell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width