Title: Issue with zooming when projection is set to orthographic · Issue #1513 · plotly/plotly.py · GitHub
Open Graph Title: Issue with zooming when projection is set to orthographic · Issue #1513 · plotly/plotly.py
X Title: Issue with zooming when projection is set to orthographic · Issue #1513 · plotly/plotly.py
Description: Using the following code in a Jupyter notebook: from plotly import __version__ from plotly import graph_objs as go print('version: ', __version__) data = [ { 'type': 'scatter3d', 'x': [0, 1, 2], 'y': [0, 1, 2], 'z': [0, 1, 2], }, ] layou...
Open Graph Description: Using the following code in a Jupyter notebook: from plotly import __version__ from plotly import graph_objs as go print('version: ', __version__) data = [ { 'type': 'scatter3d', 'x': [0, 1, 2], 'y...
X Description: Using the following code in a Jupyter notebook: from plotly import __version__ from plotly import graph_objs as go print('version: ', __version__) data = [ { 'type': 'scatter3d&...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1513
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with zooming when projection is set to orthographic","articleBody":"Using the following code in a Jupyter notebook:\r\n\r\n```\r\nfrom plotly import __version__\r\nfrom plotly import graph_objs as go\r\n\r\nprint('version: ', __version__)\r\n\r\ndata = [\r\n {\r\n 'type': 'scatter3d',\r\n 'x': [0, 1, 2],\r\n 'y': [0, 1, 2],\r\n 'z': [0, 1, 2],\r\n },\r\n]\r\n\r\nlayout = {\r\n 'scene': {\r\n 'camera': {\r\n 'projection': {\r\n 'type': 'orthographic',\r\n }\r\n }\r\n },\r\n}\r\n\r\nfw = go.FigureWidget(data=data, layout=layout)\r\nfw\r\n```\r\n\r\n`version: 3.7.1`\r\n\r\nThe resulting FigureWidget does not seem to zoom properly, as can be seen in the below GIF. When `projection` is set to `perspective`, there is no problem with zooming.\r\n\r\n\r\n\r\nEDIT: to be more specific, it seems like when using orthographic projection, we can't zoom out from the original camera position. See the below GIF, where I start with perspective projection (where I can zoom out) and then switch to orthographic projection (where I can't zoom out beyond the original level). It could be possible I am misunderstanding something about orthographic projection however.\r\n\r\n\r\n","author":{"url":"https://github.com/aplowman","@type":"Person","name":"aplowman"},"datePublished":"2019-04-10T22:15:11Z","url":"https://github.com/plotly/plotly.py/issues/1513"}
| 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:e7483984-3853-e169-7402-9065b4b0e273 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC4E:21AC3F:3727C88:45D06D2:6B01CDE9 |
| html-safe-nonce | 51c0af08c2d513df54dc0dc0668e6b1f3f4a981181fee03572ff60762c162c50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzRFOjIxQUMzRjozNzI3Qzg4OjQ1RDA2RDI6NkIwMUNERTkiLCJ2aXNpdG9yX2lkIjoiNDk1NjY0MTU4NDIzMDgxMzE2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54ba858c91179688686eadf6954c7747391e1e896aaac5efa4fd92f6a50b570a |
| hovercard-subject-tag | issue:431741704 |
| 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.py/1513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dfa2cc5b6552a08a9edff6bb3c1c0d744ae6699d5ee239fc66e55825cba09eaa/plotly/plotly.py/issues/1513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dfa2cc5b6552a08a9edff6bb3c1c0d744ae6699d5ee239fc66e55825cba09eaa/plotly/plotly.py/issues/1513 |
| og:image:alt | Using the following code in a Jupyter notebook: from plotly import __version__ from plotly import graph_objs as go print('version: ', __version__) data = [ { 'type': 'scatter3d', 'x': [0, 1, 2], 'y... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aplowman |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| 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