Title: [ENH/BUG]: Scatter/Collection line style improvements · Issue #22984 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH/BUG]: Scatter/Collection line style improvements · Issue #22984 · matplotlib/matplotlib
X Title: [ENH/BUG]: Scatter/Collection line style improvements · Issue #22984 · matplotlib/matplotlib
Description: Problem The scatter/Collection linestyle support, https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection , is limited in that it does not support the same linestyles as plot, https://matplotlib.org/stabl...
Open Graph Description: Problem The scatter/Collection linestyle support, https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection , is limited in that it does not support the same linestyl...
X Description: Problem The scatter/Collection linestyle support, https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection , is limited in that it does not support the same linestyl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22984
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH/BUG]: Scatter/Collection line style improvements","articleBody":"### Problem\r\n\r\nThe scatter/Collection linestyle support, https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection , is limited in that it does not support the same linestyles as plot, https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html .\r\n\r\nEspecially, they do not support the empty linestyle (`''`, `' '`, `'None'`, `'none'`), but seems to support all other options. Seems to make sense to add that so that one can just point at the linestyles document.\r\n\r\nThere is also an issue with that the code hanging for zero dash-lengths. This is similar to the bug fixed in #22569 (which introduced another issue #22930, fixed in #22931, so one should take care to not repeat that). \r\n\r\nExamples:\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\nplt.scatter([1, 2], [2, 1], marker='s', linestyle='')\r\n```\r\nproduces an error `ValueError: Do not know how to convert '' to dashes`.\r\n```\r\nplt.scatter([1, 2], [2, 1], marker='s', linestyle=(0, (0, )))\r\n```\r\nwill hang (may be backend dependent though).\r\n\r\n\r\n### Proposed solution\r\n\r\n* Support empty line style (and update documentation). \r\n* Check that total dash-length is positive (or empty) and produce an error otherwise.","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2022-05-05T19:29:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22984/matplotlib/issues/22984"}
| 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:6631dcc3-545a-6511-e08f-d9570a07f3d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC10:14011B:31B7D92:45C8382:6A4F76C1 |
| html-safe-nonce | 3c01ac20ed2fb35a039bd43b5dab8e2dca9036fd572480b3301001b88223b5fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzEwOjE0MDExQjozMUI3RDkyOjQ1QzgzODI6NkE0Rjc2QzEiLCJ2aXNpdG9yX2lkIjoiNzc5ODAyMjE5NzI2MDI4NTYzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a6244135895cca3be5db384125866a5e6437f748af110e5990dd7b57a76b2948 |
| hovercard-subject-tag | issue:1227091731 |
| 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/22984/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7390e28c82de3bba79e8c637ccd2c39dccecaa10250fb6a13cd7664b99bf3c5c/matplotlib/matplotlib/issues/22984 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7390e28c82de3bba79e8c637ccd2c39dccecaa10250fb6a13cd7664b99bf3c5c/matplotlib/matplotlib/issues/22984 |
| og:image:alt | Problem The scatter/Collection linestyle support, https://matplotlib.org/stable/api/collections_api.html#matplotlib.collections.Collection , is limited in that it does not support the same linestyl... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width