Title: Simplify macosx toolbar init. by anntzer · Pull Request #21717 · matplotlib/matplotlib · GitHub
Open Graph Title: Simplify macosx toolbar init. by anntzer · Pull Request #21717 · matplotlib/matplotlib
X Title: Simplify macosx toolbar init. by anntzer · Pull Request #21717 · matplotlib/matplotlib
Description: Pass canvas as argument to __init__, relying on PyArg_ParseTuple to check type (and non-NULL-ness). Also declare some variables closer to point of use, and use NSMakeRect/NSMakeSize to create NSRects and NSSizes. PR Summary PR Checklist Tests and Styling Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all). Documentation New features are documented, with examples if plot related. New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there). API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there). Documentation is sphinx and numpydoc compliant (the docs should build without error).
Open Graph Description: Pass canvas as argument to __init__, relying on PyArg_ParseTuple to check type (and non-NULL-ness). Also declare some variables closer to point of use, and use NSMakeRect/NSMakeSize to create NSRec...
X Description: Pass canvas as argument to __init__, relying on PyArg_ParseTuple to check type (and non-NULL-ness). Also declare some variables closer to point of use, and use NSMakeRect/NSMakeSize to create NSRec...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/21717
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a5cedeb6-79ba-f923-4828-127b8bc804d1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89BC:9280A:41D251:59AD07:6A5800A4 |
| html-safe-nonce | b193e8d2d9cbd242887f9d79e8b30a37760415695c5bf290cb186be8ce6c7e76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUJDOjkyODBBOjQxRDI1MTo1OUFEMDc6NkE1ODAwQTQiLCJ2aXNpdG9yX2lkIjoiNzA1Mjg3NDk1NTEzOTU4MDA2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 740c949f81d7cc2e5b8811412716ff6a51fe6597e357119449d2ff477e344782 |
| hovercard-subject-tag | pull_request:786393771 |
| 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/21717/files |
| twitter:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| og:image:alt | Pass canvas as argument to __init__, relying on PyArg_ParseTuple to check type (and non-NULL-ness). Also declare some variables closer to point of use, and use NSMakeRect/NSMakeSize to create NSRec... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width