Skip to content

Overlay created by Axes.indicate_inset_zoom does not adjust when changing inset ranges #19768

Closed

Description

@pulkin

Axes.indicate_inset_zoom just creates a static overlay which does not adjust when inset axes ranges are changed. Additional calls to Axes.indicate_inset_zoom will create new overlays. It is expected that the result of this

ax.indicate_inset_zoom(ax_inset)
ax_inset.set_xlim(new_lim)

and this

ax_inset.set_xlim(new_lim)
ax.indicate_inset_zoom(ax_inset)

are exactly the same.

Activity

  1. jklymak commented on Mar 25, 2021

    @jklymak
    Member

    That would be a new feature, and I guess would require a callback. The indicators are indeed quite static.

  2. github-actions commented on Dec 6, 2023

    @github-actions

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

  3. QuLogic commented on Dec 13, 2023

    @QuLogic
    Member

    In order to implement this, I think we will have to add an InsetIndicator sort of container that can manage everything. This could also take care of pan/zoom on the original Axes as well.

  4. added this to the v3.10.0 milestone on Sep 18, 2024
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