Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #1139 · plotly/plotly.py · GitHub
Open Graph Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #1139 · plotly/plotly.py
X Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #1139 · plotly/plotly.py
Description: Hi, generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d with error bars results in extremely large error bars. The proportions of the error bars in the 3D plot a...
Open Graph Description: Hi, generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d with error bars results in extremely large error bars. The propor...
X Description: Hi, generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d with error bars results in extremely large error bars. The propor...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error bars not scaled correctly in logarithmic 3D plots","articleBody":"Hi,\r\n\r\ngenerating a ```Scatter``` plot with a logarithmic y axis and given ```error_y``` works fine whereas creating a similar plot with ```Scatter3d``` with error bars results in extremely large error bars. The proportions of the error bars in the 3D plot are correct if ```type='log'``` is omitted.\r\n\r\n**Example:**\r\n\r\n```python\r\n#!/usr/bin/env python3\r\n# encoding=utf-8\r\n\r\nimport plotly.plotly as py\r\nimport plotly.graph_objs as go\r\nimport plotly.offline\r\n\r\nimport numpy as np\r\n\r\nmeasurements = list(range(3))\r\nx = np.array(range(10))\r\nz = np.array([10**i for i in range(10)])\r\nz_errors = z * 0.3\r\n\r\n# 2D plot\r\ntrace = [go.Scatter(\r\n\tx = x,\r\n\ty = z,\r\n\terror_y = dict(\r\n\t\ttype = 'data',\r\n\t\tarray = z_errors,\r\n\t\tvisible = True,\r\n\t),\r\n)]\r\n\r\nlayout = go.Layout(\r\n\tyaxis = dict(\r\n\t\ttype = 'log',\r\n\t),\r\n)\r\n\r\nfig = go.Figure(data=trace, layout=layout)\r\nplotly.offline.plot(fig, filename='example_2d.html')\r\n\r\n# 3D plot\r\ntraces = [go.Scatter3d(\r\n\tx = x,\r\n\ty = [constant] * len(x),\r\n\tz = z,\r\n\terror_z = dict(\r\n\t\ttype = 'data',\r\n\t\tarray = z_errors,\r\n\t\tvisible = True,\r\n\t),\r\n) for constant in measurements]\r\n\r\nlayout = go.Layout(\r\n\tscene = dict(\r\n\t\tzaxis = dict(\r\n\t\t\ttype \t= 'log',\r\n\t\t),\r\n\t)\r\n)\r\n\r\nfig = go.Figure(data=traces, layout=layout)\r\nplotly.offline.plot(fig, filename='example_3d.html')\r\n```\r\n\r\n**Results:**\r\n\r\n2D (```type='log'```)\r\n\r\n\r\n3D (```type='log'```)\r\n\r\n\r\n3D\r\n\r\n","author":{"url":"https://github.com/jdieg0","@type":"Person","name":"jdieg0"},"datePublished":"2018-08-29T17:50:14Z","url":"https://github.com/plotly/plotly.py/issues/1139"}
| 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:df625f64-99c0-73db-ef0c-d33ab4f5d720 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBBA:2270F4:2D255C2:3BF206B:6B01CD36 |
| html-safe-nonce | 2a2af5be740bc3bf8aad80c58a18f078a4a2715ce64ef3ca5e91db9e767408ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkJBOjIyNzBGNDoyRDI1NUMyOjNCRjIwNkI6NkIwMUNEMzYiLCJ2aXNpdG9yX2lkIjoiMjc4MjU4NDk4MjE2MDM5NTU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eef79e87864711a6c7e02e65a88ee490af81970109557d5adad192a4079ef387 |
| hovercard-subject-tag | issue:355267093 |
| 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/1139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b62765cf79f97fe0ef57519b3ece963d2880ed531c54831fd7761fe4fc9ab463/plotly/plotly.py/issues/1139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b62765cf79f97fe0ef57519b3ece963d2880ed531c54831fd7761fe4fc9ab463/plotly/plotly.py/issues/1139 |
| og:image:alt | Hi, generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d with error bars results in extremely large error bars. The propor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdieg0 |
| 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