Skip to content

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

Closed

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.

Activity

  1. mylasem commented on Mar 23, 2022

    @mylasem

    I am working on this one!

  2. added this to the v3.6.0 milestone on Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions