Title: FIX: Colorbars check for subplotspec attribute before using by greglucas · Pull Request #22611 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX: Colorbars check for subplotspec attribute before using by greglucas · Pull Request #22611 · matplotlib/matplotlib
X Title: FIX: Colorbars check for subplotspec attribute before using by greglucas · Pull Request #22611 · matplotlib/matplotlib
Description: PR Summary Update the colorbar get_subplotspec() to only access attributes after a check for it having the attribute, else return None. Fixes #22576 This will still warn about the Axes not being compatible, but I think that is expected as an AxesGrid inset_axes() without a colorbar also warns. 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: PR Summary Update the colorbar get_subplotspec() to only access attributes after a check for it having the attribute, else return None. Fixes #22576 This will still warn about the Axes not being co...
X Description: PR Summary Update the colorbar get_subplotspec() to only access attributes after a check for it having the attribute, else return None. Fixes #22576 This will still warn about the Axes not being co...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/22611
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:53ecc433-31d8-250d-db4f-d22ba66e8eb3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9BF2:25BA60:24EC542:31E824B:6A539C80 |
| html-safe-nonce | 605d2e39ff7d9b35c9a236c7cca49779843fda3585ff1c69adc80c2f78b57f6d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkYyOjI1QkE2MDoyNEVDNTQyOjMxRTgyNEI6NkE1MzlDODAiLCJ2aXNpdG9yX2lkIjoiMzc1MjkwMjA4MjQwMDg1MzEyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ef9706358306e24e69877317456b74b46cc349bacb5d69fc773ea304166b3fc2 |
| hovercard-subject-tag | pull_request:872373057 |
| 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/22611/files |
| twitter:image | https://avatars.githubusercontent.com/u/12417828?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12417828?s=400&v=4 |
| og:image:alt | PR Summary Update the colorbar get_subplotspec() to only access attributes after a check for it having the attribute, else return None. Fixes #22576 This will still warn about the Axes not being co... |
| 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