Title: include overspilling axes legends in ax.get_tightbbox by jklymak · Pull Request #9164 · matplotlib/matplotlib · GitHub
Open Graph Title: include overspilling axes legends in ax.get_tightbbox by jklymak · Pull Request #9164 · matplotlib/matplotlib
X Title: include overspilling axes legends in ax.get_tightbbox by jklymak · Pull Request #9164 · matplotlib/matplotlib
Description: PR Summary Expands ax.get_tightbbox to include legends. Now something like import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(tight_layout=True) ax.plot(range(10), label="Plot 1") ax.plot(range(10, 0, -1), label="Plot 2") ax.legend(loc='center right', bbox_to_anchor=(1.20, 0.5)) plt.show() will automatically make room for the legend (via tight_layout). #9163 #9130 PR Checklist Code is PEP 8 compliant
Open Graph Description: PR Summary Expands ax.get_tightbbox to include legends. Now something like import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(tight_layout=True) ax.plot(range(10), label=&qu...
X Description: PR Summary Expands ax.get_tightbbox to include legends. Now something like import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(tight_layout=True) ax.plot(range(10), label=&am...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/9164
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8b85f378-366a-6afc-5708-527a1947a84f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ED10:1A7CA7:115FE0D:17211C6:6A533B69 |
| html-safe-nonce | 9e0072f7e31222b8c706388dbc2dda5aac2e66dc8e3c31c04a813d74c6cf08ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDEwOjFBN0NBNzoxMTVGRTBEOjE3MjExQzY6NkE1MzNCNjkiLCJ2aXNpdG9yX2lkIjoiNDAxNjc3MDc4NTU3NDMzNzM4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b7fcd4054beb838af2925d5811a3b67f677dabc2d8627b96555aa0051bfec8a |
| hovercard-subject-tag | pull_request:139693893 |
| 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/9164/files |
| twitter:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| og:image:alt | PR Summary Expands ax.get_tightbbox to include legends. Now something like import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(tight_layout=True) ax.plot(range(10), label=&qu... |
| 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