Title: Initial camera up vector ignored · Issue #2425 · plotly/plotly.js · GitHub
Open Graph Title: Initial camera up vector ignored · Issue #2425 · plotly/plotly.js
X Title: Initial camera up vector ignored · Issue #2425 · plotly/plotly.js
Description: default camera position of plot behaves like default value of up vector have not been overridden clicking "reset camera .*" button fixes that moreover split second after page load plot will move from overridden up state to default up sta...
Open Graph Description: default camera position of plot behaves like default value of up vector have not been overridden clicking "reset camera .*" button fixes that moreover split second after page load plot will move fr...
X Description: default camera position of plot behaves like default value of up vector have not been overridden clicking "reset camera .*" button fixes that moreover split second after page load plot wi...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2425
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Initial camera up vector ignored ","articleBody":"default camera position of plot behaves like default value of up vector have not been overridden\r\nclicking \"reset camera .*\" button fixes that\r\nmoreover split second after page load plot will move from overridden up state to default up state \r\n\r\nmore info in comment to below example\r\n\r\n```\r\nimport plotly\r\nimport plotly.graph_objs as go\r\n\r\nimport pandas as pd\r\n\r\n# Read data from a csv\r\nz_data = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv')\r\n\r\ndata = [\r\n go.Surface(\r\n z=z_data.as_matrix()\r\n )\r\n]\r\nlayout = go.Layout(\r\n scene=dict(\r\n camera=dict(center=dict(y=0, x=0, z=0),\r\n eye=dict(y=0.362, x=-1.213, z=1.792),\r\n up=dict(y=0.984, x=0.045, z=-0.168),#default position of plot behaves like default value have not been overridden\r\n # comment above line and initial state of plot would be the same, clicking \"reset camera .*\" button fixes that\r\n #moreover when above line is not commented plot will move from overridden up state to default up state split second after page load\r\n )\r\n )\r\n)\r\nfig = go.Figure(data=data, layout=layout)\r\nplotly.offline.plot(fig, filename=\"filename\")\r\n\r\n```","author":{"url":"https://github.com/KonradAdamczyk","@type":"Person","name":"KonradAdamczyk"},"datePublished":"2018-02-28T20:12:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2425/plotly.js/issues/2425"}
| 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:d7d5f67c-f3d4-cdb2-c267-301d86e8f14f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 929A:ACCAF:22270E3:2E02636:6A59A613 |
| html-safe-nonce | bc53dc946085dce6b6e3eabfab5d164ffbc6258f07df8dbb67bf9791961b1f45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjlBOkFDQ0FGOjIyMjcwRTM6MkUwMjYzNjo2QTU5QTYxMyIsInZpc2l0b3JfaWQiOiIzMjc4MDgxNTg5NDIzNzQ0NTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 087ce7079ef476f125d6f2390160e2f62034ad470fb7d890d5bbe3c20af6f417 |
| hovercard-subject-tag | issue:301166004 |
| 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/2425/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aacef99d31576ab3c8fbcafa3d68ecfcff230d686977c50f1bf34e446abe7e5a/plotly/plotly.js/issues/2425 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aacef99d31576ab3c8fbcafa3d68ecfcff230d686977c50f1bf34e446abe7e5a/plotly/plotly.js/issues/2425 |
| og:image:alt | default camera position of plot behaves like default value of up vector have not been overridden clicking "reset camera .*" button fixes that moreover split second after page load plot will move fr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KonradAdamczyk |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 0b971869dd75eec26500a9de7e85b8137c6bf0f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width