Title: [ENH]: inset_axes has borderpadding, but not x/y individually. · Issue #30331 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: inset_axes has borderpadding, but not x/y individually. · Issue #30331 · matplotlib/matplotlib
X Title: [ENH]: inset_axes has borderpadding, but not x/y individually. · Issue #30331 · matplotlib/matplotlib
Description: Problem axislabels (ticks labels or labels) of inset_axes feature can sometimes overlap the outer axes of the main plot when location is set to upper left, lower left. borderpad in inset_axes allows the user to offset the axes from the m...
Open Graph Description: Problem axislabels (ticks labels or labels) of inset_axes feature can sometimes overlap the outer axes of the main plot when location is set to upper left, lower left. borderpad in inset_axes allow...
X Description: Problem axislabels (ticks labels or labels) of inset_axes feature can sometimes overlap the outer axes of the main plot when location is set to upper left, lower left. borderpad in inset_axes allow...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: inset_axes has borderpadding, but not x/y individually.","articleBody":"### Problem\n\naxislabels (ticks labels or labels) of inset_axes feature can sometimes overlap the outer axes of the main plot when location is set to upper left, lower left. borderpad in inset_axes allows the user to offset the axes from the main axes, but will in both x and y. When I place an inset in the upper left corner, it should not move down, but only to the right to not overlap with the main plot axis labels, and not move into the figure more than it should.\n\nIt would be a great feature to have borderpadding in the form of a tuple, to offset the inset axes by only x- or y-padding.\n\n### Proposed solution\n\nAllow inset_axes(borderpad=(0.5, 0.5))\nThis will also require some backpropagation into the upper classes and methods.\n","author":{"url":"https://github.com/JulienRee","@type":"Person","name":"JulienRee"},"datePublished":"2025-07-18T13:03:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30331/matplotlib/issues/30331"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a53b1a5-9b16-3e57-e36f-1200c7f7729b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBA8:21831D:1AEC8EF:23836F6:6A51D793 |
| html-safe-nonce | 628dd989861dbe5b7b115115d8596e8bcddb5fb10cd0337bf1f5d6af257ec068 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkE4OjIxODMxRDoxQUVDOEVGOjIzODM2RjY6NkE1MUQ3OTMiLCJ2aXNpdG9yX2lkIjoiODA2MDk5OTMwMzg3ODAwNjY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | be7d56be9ccce9839c6b2f5f69acbeeb3011309ca159abfb1a800e2844a357b6 |
| hovercard-subject-tag | issue:3243166105 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/matplotlib/matplotlib/30331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22061799940b7c3f8da4495a7fc5151626c75f6202d7fd3de9aa3767384b5ae0/matplotlib/matplotlib/issues/30331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22061799940b7c3f8da4495a7fc5151626c75f6202d7fd3de9aa3767384b5ae0/matplotlib/matplotlib/issues/30331 |
| og:image:alt | Problem axislabels (ticks labels or labels) of inset_axes feature can sometimes overlap the outer axes of the main plot when location is set to upper left, lower left. borderpad in inset_axes allow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JulienRee |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width