Skip to content

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

Closed
@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