Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add ability to add a patch without updating data limits #19685

Copy link
Copy link
Open
@dstansby

Description

@dstansby
Issue body actions

Problem

In sunpy we have come across a case where we want to imshow and image, and then overplot a circle on top of that image. The circle is bigger than the image, and we want to keep the axes limits to those of the image, so ideally we would like a way to add a patch, without the patch updating the data limits. As far as I can tell this isn't possible currently.

To work around this we are using add_artist() instead of add_patch(), but as I understand from #19290 this might change in the future.

Proposed Solution

ax.plot() can take scalex, scaley keywords, that indicate whether the x/y limits are updated, so maybe a similar API for add_patch(), or individual Patch objects would be helpful.

Additional context and prior art

Metadata

Metadata

Assignees

No one assigned

    Labels

    New featurekeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.