Skip to content

[ENH]: inset_axes has borderpadding, but not x/y individually. #30331

@JulienRee

Description

@JulienRee

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 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.

It 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.

Proposed solution

Allow inset_axes(borderpad=(0.5, 0.5))
This will also require some backpropagation into the upper classes and methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy