Title: Scattergl plot is sometimes slow to interact with even with moderate number of points · Issue #5927 · plotly/plotly.js · GitHub
Open Graph Title: Scattergl plot is sometimes slow to interact with even with moderate number of points · Issue #5927 · plotly/plotly.js
X Title: Scattergl plot is sometimes slow to interact with even with moderate number of points · Issue #5927 · plotly/plotly.js
Description: With constant number of points and other settings, I see that Scattergl rendering times vary a lot. With 100,000 points, there are cases where it is virtually impossible to interact with the plot (e.g. zoom), and just moving the mouse se...
Open Graph Description: With constant number of points and other settings, I see that Scattergl rendering times vary a lot. With 100,000 points, there are cases where it is virtually impossible to interact with the plot (...
X Description: With constant number of points and other settings, I see that Scattergl rendering times vary a lot. With 100,000 points, there are cases where it is virtually impossible to interact with the plot (...
Opengraph URL: https://github.com/plotly/plotly.js/issues/5927
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Scattergl plot is sometimes slow to interact with even with moderate number of points","articleBody":"With constant number of points and other settings, I see that Scattergl rendering times vary a lot. With 100,000 points, there are cases where it is virtually impossible to interact with the plot (e.g. zoom), and just moving the mouse seem to cause lengthy calculations.\r\n\r\nFor example, the following code [from the doc](https://plotly.com/python/line-and-scatter/#large-data-sets) works well:\r\n\r\n```\r\nimport plotly.graph_objects as go\r\nimport numpy as np\r\n\r\nN = 100000\r\nfig = go.Figure(data=go.Scattergl(\r\n x = np.random.randn(N),\r\n y = np.random.randn(N),\r\n mode='markers',\r\n marker=dict(\r\n color=np.random.randn(N),\r\n colorscale='Viridis',\r\n line_width=1\r\n )\r\n))\r\n\r\nfig.show()\r\n```\r\nbut if I replace the x data by zeros,\r\n\r\n```\r\n x = np.zeros(N),\r\n```\r\n\r\nperformance is significantly degraded (so much that using Scatter instead of Scattergl becomes better when trying to zoom in a box).\r\n\r\nAny ideas where the difference is coming from and how performance could be improved in this case?\r\n\r\nThanks.","author":{"url":"https://github.com/bruot","@type":"Person","name":"bruot"},"datePublished":"2021-09-07T14:24:41Z","url":"https://github.com/plotly/plotly.js/issues/5927"}
| 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:0fae041a-9060-d0be-881f-74719224fe2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88D2:2DBB21:2939D7C:370C0F8:6B01BD4D |
| html-safe-nonce | b0d46392085e409badfb7b492918ab03296619ecef5c92cd907b82faa0c60d12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEQyOjJEQkIyMToyOTM5RDdDOjM3MEMwRjg6NkIwMUJENEQiLCJ2aXNpdG9yX2lkIjoiMzExNjE2NzA4MTkyNjcwNDQ2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3eeafeb9acaf40282d9b4945e080a284547a2b265214657db7ff7fdc0f0eec17 |
| hovercard-subject-tag | issue:990043423 |
| 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/5927/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34db9b8741939c9552b4e5ca565f16240123265207f062f6cdd03bf2f8dfb6ca/plotly/plotly.js/issues/5927 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34db9b8741939c9552b4e5ca565f16240123265207f062f6cdd03bf2f8dfb6ca/plotly/plotly.js/issues/5927 |
| og:image:alt | With constant number of points and other settings, I see that Scattergl rendering times vary a lot. With 100,000 points, there are cases where it is virtually impossible to interact with the plot (... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bruot |
| 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