8000 [Doc]: Cleanup viewlims example · Issue #25979 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Doc]: Cleanup viewlims example #25979
Closed
@anntzer

Description

@anntzer

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

      0