Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #2962 · plotly/plotly.js · GitHub
Open Graph Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #2962 · plotly/plotly.js
X Title: Error bars not scaled correctly in logarithmic 3D plots · Issue #2962 · plotly/plotly.js
Description: Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0 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...
Open Graph Description: Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0 generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d wi...
X Description: Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0 generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d wi...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2962
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error bars not scaled correctly in logarithmic 3D plots","articleBody":"Plotly.js translation of https://github.com/plotly/plotly.py/issues/1139 reported by @jdieg0\r\n\r\n> 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 are correct if type='log' is omitted.\r\n\r\nCodepen: https://codepen.io/anon/pen/YOZyQq\r\n\r\nIn `scatter` the error bars work as expected.\r\n\r\n```javascript\r\n// ## Constants\r\nvar x = [0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]\r\nvar y = x.map(function() {return 0})\r\nvar z = [1.e+00, 1.e+01, 1.e+02, 1.e+03, 1.e+04,\r\n 1.e+05, 1.e+06, 1.e+07, 1.e+08, 1.e+09]\r\n\r\nvar error_z = [3.e-01, 3.e+00, 3.e+01, 3.e+02, 3.e+03, \r\n 3.e+04, 3.e+05, 3.e+06, 3.e+07, 3.e+08]\r\n\r\n// ## Scatter 2D\r\nvar scatter = {\r\n 'type': 'scatter',\r\n 'error_y': {'array': error_z,\r\n 'type': 'data',\r\n 'visible': true\r\n },\r\n 'x': x,\r\n 'y': z\r\n}\r\n\r\nvar layout = {'yaxis': {'type': 'log', 'title': 'z'},\r\n 'xaxis': {'title': 'x'},\r\n 'width': 800,\r\n 'height': 800};\r\n\r\nvar data = [ scatter ];\r\n\r\n// ## Plot scatter 2D\r\nPlotly.newPlot('myDiv', data, layout);\r\n```\r\n\r\n\r\n\r\nIn `scatter3d` the errors bars grow very large\r\n\r\n```javascript\r\nvar scatter3d = {\r\n 'type': 'scatter3d',\r\n 'error_z': {'array': error_z,\r\n 'type': 'data',\r\n 'visible': true\r\n },\r\n 'x': x,\r\n 'y': y,\r\n 'z': z\r\n}\r\n\r\nvar data3d = [ scatter3d ];\r\nvar layout3d = {'scene': {'zaxis': {'type': 'log'}},\r\n 'width': 800,\r\n 'height': 800};\r\n\r\n// ## Plot scatter 3D\r\nPlotly.newPlot('myDiv', data3d, layout3d);\r\n```\r\n\r\n\r\nPerhaps `error_z.type='data'` is not implemented?","author":{"url":"https://github.com/jonmmease","@type":"Person","name":"jonmmease"},"datePublished":"2018-09-01T10:32:34Z","url":"https://github.com/plotly/plotly.js/issues/2962"}
| 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:50c0ec84-c715-d5aa-8b0e-6c1c03cdc69b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A27A:62F48:4EC35C:688156:6B01CD1E |
| html-safe-nonce | 1f9dcb994e7e783f5c33c8b70c824898a640d03c1c881453402385f9a8af1be0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjdBOjYyRjQ4OjRFQzM1Qzo2ODgxNTY6NkIwMUNEMUUiLCJ2aXNpdG9yX2lkIjoiNDcwNDM0ODQ2NjQ2MDA4NTUzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fca97fed57e449864f78b118bb07e5876013d70d7a5e5ceb3d314ff0f332ac1c |
| hovercard-subject-tag | issue:356192015 |
| 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/2962/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe756f4cbd818885dfd0ac16e9fa9de7cdfe543084b8c6249f633cffb39797c9/plotly/plotly.js/issues/2962 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe756f4cbd818885dfd0ac16e9fa9de7cdfe543084b8c6249f633cffb39797c9/plotly/plotly.js/issues/2962 |
| og:image:alt | Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0 generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jonmmease |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width