Skip to content

[ENH]: enable passing of projection keyword to Axes.inset_axes #22630

@rcomer

Description

@rcomer

Problem

Most methods to create an Axes instance (e.g. Figure.add_axes, pyplot.subplot) allow passing of the projection keyword in order to return an instance of a subclass of Axes. It would be useful if Axes.inset_axes could do the same.

See also #22608 where there was some agreement that this would be useful, but that was not the right solution.

Proposed solution

I'm unfamilar with the Matplotlib codebase, but I think the relevant functionality is contained within Figure._process_projection_requirements. So perhaps inset_axes could reuse that somehow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    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