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

[Doc]: Cleanup viewlims example #25979

Copy link
Copy link
Closed
@anntzer

Description

@anntzer
Issue body actions

Documentation Link

https://matplotlib.org/stable/gallery/event_handling/viewlims.html

Problem

The viewlims example is nice, but

  • subclassing Rectangle to make it callable and thus usable as a xlim_changed callback seems a bit weird, probably better to use some plain function callback that closes over the rectangle object.
  • accessing ax.viewLim is a bit unidiomatic, ax.get_xlim()/ax.get_ylim() seem like the normal approach.

Suggested improvement

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    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.