Title: [DOC]: clarify that `markevery[float]` considers path length along drawn line · Issue #27842 · matplotlib/matplotlib · GitHub
Open Graph Title: [DOC]: clarify that `markevery[float]` considers path length along drawn line · Issue #27842 · matplotlib/matplotlib
X Title: [DOC]: clarify that `markevery[float]` considers path length along drawn line · Issue #27842 · matplotlib/matplotlib
Description: Bug summary markevery[float] is supposed to result in evenly distributed markers, but when y-data is noisy, its effect seems to "gradually" fade away. Code for reproduction import matplotlib.pyplot as plt import numpy as np x = np.linspa...
Open Graph Description: Bug summary markevery[float] is supposed to result in evenly distributed markers, but when y-data is noisy, its effect seems to "gradually" fade away. Code for reproduction import matplotlib.pyplot...
X Description: Bug summary markevery[float] is supposed to result in evenly distributed markers, but when y-data is noisy, its effect seems to "gradually" fade away. Code for reproduction import matplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27842
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[DOC]: clarify that `markevery[float]` considers path length along drawn line","articleBody":"### Bug summary\n\n`markevery[float]` is supposed to result in evenly distributed markers, but when y-data is noisy, its effect seems to \"gradually\" fade away.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nx = np.linspace(1e3, 1e7, 1000)\r\n\r\nfig, ax = plt.subplots(nrows=3, ncols=3, figsize=(9, 9), layout=\"constrained\")\r\n\r\nfor i, ax_i in enumerate(ax.flatten()):\r\n ax_i.set_title(f\"noise level = {i/5:.1f}\")\r\n y = np.exp(x**0.1) + np.random.rand(len(x)) * i/2\r\n ax_i.plot(x, y, 'b.-', markevery=0.1, ms=10, markerfacecolor=\"r\")\r\n ax_i.set_xscale(\"log\")\r\n ax_i.set_yscale(\"log\")\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\nAll subplots be like the one with 0 noise level.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nUbuntu\n\n### Matplotlib Version\n\n3.8.3\n\n### Matplotlib Backend\n\nmatplotlib_inline.backend_inline\n\n### Python version\n\n3.10.13\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/ma-sadeghi","@type":"Person","name":"ma-sadeghi"},"datePublished":"2024-03-01T10:28:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/27842/matplotlib/issues/27842"}
| 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:0fde74d0-addb-bebc-2b75-cc761b23b54c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDDE:366B56:2D84C:3C7F6:6A52AD34 |
| html-safe-nonce | a22c198d333c61f88fdb5fdfa2c0aa2e9c9d5c4a81db5538dd30b6945bd2b33b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRERFOjM2NkI1NjoyRDg0QzozQzdGNjo2QTUyQUQzNCIsInZpc2l0b3JfaWQiOiI3ODkyODA1NzA0NTA3MTA4NjYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9ca61870c2ca20140ba1fd89ddd95ff5ede378979e7c6b62db4f99732aa25d2f |
| hovercard-subject-tag | issue:2163097648 |
| 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/27842/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03505db1d224f7a1dccc9370d1d4a938143f176a225289118aea14c1d8cb401b/matplotlib/matplotlib/issues/27842 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03505db1d224f7a1dccc9370d1d4a938143f176a225289118aea14c1d8cb401b/matplotlib/matplotlib/issues/27842 |
| og:image:alt | Bug summary markevery[float] is supposed to result in evenly distributed markers, but when y-data is noisy, its effect seems to "gradually" fade away. Code for reproduction import matplotlib.pyplot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ma-sadeghi |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width