Title: [Doc]: Oscilloscope demo x-axis offset · Issue #24476 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Oscilloscope demo x-axis offset · Issue #24476 · matplotlib/matplotlib
X Title: [Doc]: Oscilloscope demo x-axis offset · Issue #24476 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/strip_chart.html Problem The demo starts off by displaying the range 0 to 2, then 2 to 4 and so on, but after a while an offset is introduced, which I assume is unwanted...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/strip_chart.html Problem The demo starts off by displaying the range 0 to 2, then 2 to 4 and so on, but after a while an offset i...
X Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/strip_chart.html Problem The demo starts off by displaying the range 0 to 2, then 2 to 4 and so on, but after a while an offset i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Oscilloscope demo x-axis offset","articleBody":"### Documentation Link\r\n\r\nhttps://matplotlib.org/devdocs/gallery/animation/strip_chart.html\r\n\r\n### Problem\r\n\r\nThe demo starts off by displaying the range 0 to 2, then 2 to 4 and so on, but after a while an offset is introduced, which I assume is unwanted. For example, the 20th updates goes to 40.25 (probably a bit more) rather than 40.\r\n\r\nNo big deal and probably just a one-off error (or a floating-point effect), but I was just about to point a colleague to this and realized that something was not as one could hope for.\r\n\r\nNote that one will have to run it locally to see the effect. (The online version can probably be slightly improved though as it just starts redrawing before starting all over again.)\r\n\r\n### Suggested improvement\r\n\r\nFix the code so that it always increment the range by 2 (or `t` rather). One may think of skipping the `dt` and instead use number of points per display (`t/dt`).","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2022-11-16T13:12:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/24476/matplotlib/issues/24476"}
| 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:62c90f7c-0fb7-7f79-0942-02429b264308 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E46C:16BA45:23E91D:3412AC:6A50F2FA |
| html-safe-nonce | 93c7968e06ac4f19d6e064ece0daf1c524c8443a1355ed89665814907c367344 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDZDOjE2QkE0NToyM0U5MUQ6MzQxMkFDOjZBNTBGMkZBIiwidmlzaXRvcl9pZCI6IjQ0NDExNzY4Nzk0MTY3OTk5OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 69496d4b5f6cd4921f61093449333a2eadeea1f8b26ed74cf76ee30b20df960f |
| hovercard-subject-tag | issue:1451581136 |
| 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/matplotlib/matplotlib/24476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a769efbe763dc446d5381963862b17465c409f550a40dd5ad31baf918a2fbbd/matplotlib/matplotlib/issues/24476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a769efbe763dc446d5381963862b17465c409f550a40dd5ad31baf918a2fbbd/matplotlib/matplotlib/issues/24476 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/gallery/animation/strip_chart.html Problem The demo starts off by displaying the range 0 to 2, then 2 to 4 and so on, but after a while an offset i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscargus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 5ec60191a48933536a90c8a19f47142fcd0d4739 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width