Title: [Doc]: `.set_linestyle()` tuple method is unclear · Issue #26784 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: `.set_linestyle()` tuple method is unclear · Issue #26784 · matplotlib/matplotlib
X Title: [Doc]: `.set_linestyle()` tuple method is unclear · Issue #26784 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle Problem I looked up a method for setting plot's spine line style to a custom dash and my lazy eye caught wh...
Open Graph Description: Documentation Link https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle Problem I looked up a method for setting plot's spine line style to...
X Description: Documentation Link https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle Problem I looked up a method for setting plot's spine line styl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26784
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: `.set_linestyle()` tuple method is unclear","articleBody":"### Documentation Link\n\nhttps://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle\n\n### Problem\n\nI looked up a method for setting plot's `spine` line style to a custom dash and my lazy eye caught what I highlighted in yellow:\r\n\r\n\r\n\r\nI tried this and naturally I got an error:\r\n\r\n\r\n\r\nOnly after googling some example and reading the doc very carefully I noticed the correct way to change the line style:\r\n\r\n\r\n\n\n### Suggested improvement\n\nI think the `doc` should be re-written so it's more explicit:\r\n\r\n\r\nAlternatively a dash tuple of the following form can be provided:\r\n```\r\n(offset, (off_ink, on_ink))\r\n```\r\nWhere:\r\n* `offset`: definition\r\n* `on_ink`/`off_ink`: definition","author":{"url":"https://github.com/pawjast","@type":"Person","name":"pawjast"},"datePublished":"2023-09-15T09:05:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/26784/matplotlib/issues/26784"}
| 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:dc2de643-d32c-c70e-f2fb-8072c65aa275 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9462:633B1:4C6A7AA:6B07045:6A4F8540 |
| html-safe-nonce | 227949f794be52eca9761fc20a18985fdcd9f2dab0bad1e9f55f473a141fbf0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDYyOjYzM0IxOjRDNkE3QUE6NkIwNzA0NTo2QTRGODU0MCIsInZpc2l0b3JfaWQiOiI4NzEzNDczMTA0NjQ1NDI0NDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b993abe17f2062437c929dda77bb5e44cf39744a8271354810b04a4096f18de6 |
| hovercard-subject-tag | issue:1898017306 |
| 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/26784/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5bbfee9942dc675df4d1bfa0d9e223d9023b279056b8d38bb506267f8c5ef1b4/matplotlib/matplotlib/issues/26784 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5bbfee9942dc675df4d1bfa0d9e223d9023b279056b8d38bb506267f8c5ef1b4/matplotlib/matplotlib/issues/26784 |
| og:image:alt | Documentation Link https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle Problem I looked up a method for setting plot's spine line style to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pawjast |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width