Title: Improve code generated by boilerplate.py by timhoffm · Pull Request #10309 · matplotlib/matplotlib · GitHub
Open Graph Title: Improve code generated by boilerplate.py by timhoffm · Pull Request #10309 · matplotlib/matplotlib
X Title: Improve code generated by boilerplate.py by timhoffm · Pull Request #10309 · matplotlib/matplotlib
Description: PR Summary This PR improves the code generated by boilerplate.py. In particular make the boilerplate-no-change-comment fit on one line (just aesthetics). make the docstrings of the colormap-functions PEP8 conform. change the code of the colormap functions to just calling set_colormap (the code from there was just duplicated). Below is an example of a changed colormap function as it's not easily readable in the diff. Before: def autumn(): ''' set the default colormap to autumn and apply to current image if any. See help(colormaps) for more information ''' rc('image', cmap='autumn') im = gci() if im is not None: im.set_cmap(cm.autumn) After: def autumn(): """ Set the colormap to "autumn". This changes the default colormap as well as the colormap of the current image if there is one. See ``help(colormaps)`` for more information. """ set_cmap("autumn")
Open Graph Description: PR Summary This PR improves the code generated by boilerplate.py. In particular make the boilerplate-no-change-comment fit on one line (just aesthetics). make the docstrings of the colormap-functi...
X Description: PR Summary This PR improves the code generated by boilerplate.py. In particular make the boilerplate-no-change-comment fit on one line (just aesthetics). make the docstrings of the colormap-functi...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/10309
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d60aad0f-6a4f-ec62-5b02-fc5af727cc22 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BF34:18E6A9:4846DC:5F2A8B:6A52D33B |
| html-safe-nonce | 2829af84fb93251ee5d777f88c700d427ba94f80785c6145c79bdab76ad334b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjM0OjE4RTZBOTo0ODQ2REM6NUYyQThCOjZBNTJEMzNCIiwidmlzaXRvcl9pZCI6Ijc1OTM0MDA0MjkwNDE2MDMzODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10e16c85ada785ee6e146197642423379ab42dfe14eca721466d4dc4d315071f |
| hovercard-subject-tag | pull_request:164740991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/10309/files |
| twitter:image | https://avatars.githubusercontent.com/u/2836374?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2836374?s=400&v=4 |
| og:image:alt | PR Summary This PR improves the code generated by boilerplate.py. In particular make the boilerplate-no-change-comment fit on one line (just aesthetics). make the docstrings of the colormap-functi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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