Title: [Bug]: plot directive not handling indentation of long option strings · Issue #29649 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: plot directive not handling indentation of long option strings · Issue #29649 · matplotlib/matplotlib
X Title: [Bug]: plot directive not handling indentation of long option strings · Issue #29649 · matplotlib/matplotlib
Description: Bug summary In #29644, I couldn't wrap alt text because the alt field wasn't getting properly parsed by the plot directive. Instead it yeilded something like the following for every variant Code for reproduction .. plot:: _embedded_plots...
Open Graph Description: Bug summary In #29644, I couldn't wrap alt text because the alt field wasn't getting properly parsed by the plot directive. Instead it yeilded something like the following for every variant Code fo...
X Description: Bug summary In #29644, I couldn't wrap alt text because the alt field wasn't getting properly parsed by the plot directive. Instead it yeilded something like the following for every variant...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29649
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: plot directive not handling indentation of long option strings","articleBody":"### Bug summary\n\nIn #29644, I couldn't wrap alt text because the alt field wasn't getting properly parsed by the plot directive. Instead it yeilded something like the following for every variant \n\n### Code for reproduction\n\n```rst\n.. plot:: _embedded_plots/hatch_classes.py\n :alt: 8 squares, each showing the pattern corresponding to the hatch symbol: symbol\n '/' makes right leaning diagonals, '\\\\' makes left leaning diagonals, '|' makes\n vertical lines, '-' makes horizontal lines, '+' makes a grid, 'X' makes a grid\n rotated 90 degrees, 'o' makes small unfilled circles, 'O' makes large unfilled\n circles, '.' makes small filled circles,\n and '*' makes a start with 5 points\n :include-source: false\n```\n\n### Actual outcome\n\n\n\n### Expected outcome\n\nThe alt text properly parsed so just the image shows and the alt txt is put into the html\n\n### Additional information\n\n### Matplotlib Version\n\ndev\n","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2025-02-20T22:05:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/29649/matplotlib/issues/29649"}
| 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:fab5b0fc-82de-9f50-0936-9d3f744db0c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABAC:29EB21:589D01:75CD8A:6A519A76 |
| html-safe-nonce | d743c8a6ff6335988d12cafb64276921c9000c590a5dc62f4b30b3a51cb5cd00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkFDOjI5RUIyMTo1ODlEMDE6NzVDRDhBOjZBNTE5QTc2IiwidmlzaXRvcl9pZCI6IjYxNzg4NDcxMTMyNDMzNjgwNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 49c36b03bdd1b24dab62ada9748ade92723c919c5950872767d387ef77cd73fe |
| hovercard-subject-tag | issue:2867375218 |
| 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/29649/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6db04ade5604bf67e711cbb8ffc257980d01acd2b8cb578f8c38adc5e6bb09e/matplotlib/matplotlib/issues/29649 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6db04ade5604bf67e711cbb8ffc257980d01acd2b8cb578f8c38adc5e6bb09e/matplotlib/matplotlib/issues/29649 |
| og:image:alt | Bug summary In #29644, I couldn't wrap alt text because the alt field wasn't getting properly parsed by the plot directive. Instead it yeilded something like the following for every variant Code fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width