Title: Outlier slows down zooming in scattergl · Issue #6174 · plotly/plotly.js · GitHub
Open Graph Title: Outlier slows down zooming in scattergl · Issue #6174 · plotly/plotly.js
X Title: Outlier slows down zooming in scattergl · Issue #6174 · plotly/plotly.js
Description: I have large data sets, which have a fat tail, i.e. looks like having an outlier. I use scattergl aiming for fast zooming. As shown in https://plotly.com/javascript/webgl-vs-svg or in the example below, one million points can be done. Ho...
Open Graph Description: I have large data sets, which have a fat tail, i.e. looks like having an outlier. I use scattergl aiming for fast zooming. As shown in https://plotly.com/javascript/webgl-vs-svg or in the example b...
X Description: I have large data sets, which have a fat tail, i.e. looks like having an outlier. I use scattergl aiming for fast zooming. As shown in https://plotly.com/javascript/webgl-vs-svg or in the example b...
Opengraph URL: https://github.com/plotly/plotly.js/issues/6174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Outlier slows down zooming in scattergl","articleBody":"I have large data sets, which have a fat tail, i.e. looks like having an outlier.\r\nI use `scattergl` aiming for fast zooming. As shown in https://plotly.com/javascript/webgl-vs-svg\r\nor in the example below, one million points can be done. However, if one point is set as an outlier, then zooming becomes very \r\nslow. I don't understand this, and spent quite some time to pin down the problem.\r\n\r\nhttps://jsfiddle.net/fasmu943\r\n\r\n```html\r\n\u003c!DOCTYPE html>\r\n\u003chtml>\r\n\u003cdiv id=\"plotly-div1\">\u003c/div>\r\n\u003cdiv id=\"plotly-div2\">\u003c/div>\r\n\r\n\u003cscript src='https://cdn.plot.ly/plotly-latest.min.js'>\u003c/script>\r\n\u003cscript>\r\nfunction gaussianRand() {\r\n var rand = 0\r\n for (var i=0; i \u003c 3; ++i) {\r\n rand += Math.random()\r\n }\r\n return (rand / 3) - 0.5\r\n}\r\n\r\nfunction plot(y, divnum){\r\n trace1 = {\r\n type: \"scattergl\",\r\n y: y,\r\n }\r\n layout = {\r\n height: 250,\r\n margin: {l: 40, r: 10, b: 30, t: 10}\r\n }\r\n Plotly.plot('plotly-div'+divnum, {\r\n data: [trace1],\r\n layout: layout,\r\n })\r\n}\r\n\r\nY = []\r\nfor (var i=0; i \u003c 1000000; i++) {\r\n Y.push(gaussianRand())\r\n}\r\n\r\nplot(Y, 1)\r\n\r\nY[800000] = 100. // adding an outlier slows down zoom\r\n\r\nplot(Y, 2)\r\n\r\ndelete Y\r\n\r\n\u003c/script>\r\n\u003c/html>\r\n```","author":{"url":"https://github.com/mzechmeister","@type":"Person","name":"mzechmeister"},"datePublished":"2022-04-30T16:42:54Z","url":"https://github.com/plotly/plotly.js/issues/6174"}
| 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:e6942dd7-d46c-b3bf-0ed2-356fae9b93c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B9E:311640:2E2EA41:3ABE8D3:6B01C111 |
| html-safe-nonce | 61dbed4d6f258f715fd481afa96b776c885fe01fd6896a5e5e80601d8a174c6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjlFOjMxMTY0MDoyRTJFQTQxOjNBQkU4RDM6NkIwMUMxMTEiLCJ2aXNpdG9yX2lkIjoiOTE0MzAzMDAxNTMzODg1NjcyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e7ad224be1fc5ed8d0402e2b1f41ba7371cb7fa4a346acc5b64d35531067ad13 |
| hovercard-subject-tag | issue:1221871741 |
| 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/6174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a60dd2825fd4533fd2540748ba90acf4010d95769d1c0af9b72fd419f2d3509/plotly/plotly.js/issues/6174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a60dd2825fd4533fd2540748ba90acf4010d95769d1c0af9b72fd419f2d3509/plotly/plotly.js/issues/6174 |
| og:image:alt | I have large data sets, which have a fat tail, i.e. looks like having an outlier. I use scattergl aiming for fast zooming. As shown in https://plotly.com/javascript/webgl-vs-svg or in the example b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mzechmeister |
| 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