Title: [Doc]: clarify when and how to use boilerplate.py · Issue #27190 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: clarify when and how to use boilerplate.py · Issue #27190 · matplotlib/matplotlib
X Title: [Doc]: clarify when and how to use boilerplate.py · Issue #27190 · matplotlib/matplotlib
Description: Documentation Link No response Problem Per this discussion #27158 (comment), I (maybe other folk) are a bit confused on what the "do not edit" comments in pyplot mean given that boilerplate.py is never run automatically. Consensus seems ...
Open Graph Description: Documentation Link No response Problem Per this discussion #27158 (comment), I (maybe other folk) are a bit confused on what the "do not edit" comments in pyplot mean given that boilerplate.py is n...
X Description: Documentation Link No response Problem Per this discussion #27158 (comment), I (maybe other folk) are a bit confused on what the "do not edit" comments in pyplot mean given that boilerpla...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27190
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: clarify when and how to use boilerplate.py","articleBody":"### Documentation Link\r\n\r\n_No response_\r\n\r\n### Problem\r\n\r\nPer this discussion https://github.com/matplotlib/matplotlib/pull/27158#discussion_r1371803287, I (maybe other folk) are a bit confused on what the \"do not edit\" comments in pyplot mean given that [boilerplate.py](https://github.com/matplotlib/matplotlib/blob/main/tools/boilerplate.py) is never run automatically. Consensus seems to be that the process should be `when changing the signature of a pyplot function, run boilerplate.py and commit those changes` but that's not documented anywhere. \r\n\r\n### Suggested improvement\r\n\r\nMore clearly document using boilerplate.py by:\r\n1) changing the Autogen message to \"generated by biolerplate.py, do not edit\"\r\nhttps://github.com/matplotlib/matplotlib/blob/b86e3312f8bc52a342362c6104c2d46a51f7e943/tools/boilerplate.py#L61-L64\r\n2) change the comment at the top of pyplot to something like \"plotting signatures are generated by boilerplate.py, rerun when changing signatures and commit the changes\r\nhttps://github.com/matplotlib/matplotlib/blob/b86e3312f8bc52a342362c6104c2d46a51f7e943/lib/matplotlib/pyplot.py#L1-L2\r\n3) add something like (note: this rst may be incorrect) to the coding guideline. \r\n```rst\r\nWhen a function in the :doc:`pyplot API\u003cdoc/api/pyplot_summary\u003e`, run :file:`lib/matplotlib/test_pyplot.py::test_pyplot_up_to_date`. If the test fails and and you intended to change those signatures, run boilerplate.py and commit the changes\r\n```","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2023-10-25T16:23:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/27190/matplotlib/issues/27190"}
| 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:8069aba1-591b-e939-8016-2ea6bf81d7b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5E4:13DDC4:AADE906:F0352AF:6A50FBC1 |
| html-safe-nonce | 228bdd4e99a43c5a65ad59ddc72401ab0c1f4d0aca635d047dd191c39aef6e00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUU0OjEzRERDNDpBQURFOTA2OkYwMzUyQUY6NkE1MEZCQzEiLCJ2aXNpdG9yX2lkIjoiNTE5NzI1NjQ3NTQ1ODczMDk0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8c4684760b25c76293470e6ed0991f20e2e70810c945ff5ad8ae90d48dbdaea8 |
| hovercard-subject-tag | issue:1961798969 |
| 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/27190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63f1aa460a30a3c8836ab4a00cdb705582ef2a00c60977857a70101c279e4cb2/matplotlib/matplotlib/issues/27190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63f1aa460a30a3c8836ab4a00cdb705582ef2a00c60977857a70101c279e4cb2/matplotlib/matplotlib/issues/27190 |
| og:image:alt | Documentation Link No response Problem Per this discussion #27158 (comment), I (maybe other folk) are a bit confused on what the "do not edit" comments in pyplot mean given that boilerplate.py is n... |
| 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 | 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width