Title: tight_labels by leejjoon · Pull Request #801 · matplotlib/matplotlib · GitHub
Open Graph Title: tight_labels by leejjoon · Pull Request #801 · matplotlib/matplotlib
X Title: tight_labels by leejjoon · Pull Request #801 · matplotlib/matplotlib
Description: This is my attempt to improve the situation of axis with too many ticks with overlapping ticklabels. The overall idea is similar to tight_layout. It calculates the fraction of the sum of ticklabel lengths (or heights) along the x-axis (or y-axis) over the axis length, and adjust the nbin value of tick locator until it satisfies some criteria. Here is a simple usage. fig, axes_list = plt.subplots(4, 4) plt.tight_labels() plt.tight_layout() This PR is just to toss around ideas. It may have some problems with shared axes. Also, I'm not quite happy with the current heuristics, and want to play with other heuristics.
Open Graph Description: This is my attempt to improve the situation of axis with too many ticks with overlapping ticklabels. The overall idea is similar to tight_layout. It calculates the fraction of the sum of ticklabel ...
X Description: This is my attempt to improve the situation of axis with too many ticks with overlapping ticklabels. The overall idea is similar to tight_layout. It calculates the fraction of the sum of ticklabel ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/801
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:630cd777-d665-2baa-9fed-3d097ba45d1d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 83C6:8B679:4FCAB1:728DDE:6A55E29F |
| html-safe-nonce | 92fbe1ef3764b8f4e5a92001c13415140becb7d800c5a3a43c48e0d4d96b2f91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0M2OjhCNjc5OjRGQ0FCMTo3MjhEREU6NkE1NUUyOUYiLCJ2aXNpdG9yX2lkIjoiNTgyNzgwNjgyMTgyMjYyMDMxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14358d9d5322281e167d4955fbae1e48d209b4e3a1e21bdfd2f84ad4b5cbd82e |
| hovercard-subject-tag | pull_request:1054540 |
| 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/801/files |
| twitter:image | https://avatars.githubusercontent.com/u/95962?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/95962?s=400&v=4 |
| og:image:alt | This is my attempt to improve the situation of axis with too many ticks with overlapping ticklabels. The overall idea is similar to tight_layout. It calculates the fraction of the sum of ticklabel ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width