-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
use RectangleSelector for callbacks and use getter functions for axes #26166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is the same pull request to #26107 which was closed by mistake |
x0, x1 = ax.get_xlim() | ||
y0, y1 = ax.get_ylim() | ||
extent = x0, x1, y0, y1 | ||
x0, x1 = ax.get_xlim() | ||
y0, y1 = ax.get_ylim() | ||
extent = x0, x1, y0, y1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x0, x1 = ax.get_xlim() | |
y0, y1 = ax.get_ylim() | |
extent = x0, x1, y0, y1 | |
x0, x1 = ax.get_xlim() | |
y0, y1 = ax.get_ylim() | |
extent = x0, x1, y0, y1 | |
x0, x1 = ax.get_xlim() | |
y0, y1 = ax.get_ylim() | |
extent = x0, x1, y0, y1 |
@@ -3,7 +3,7 @@ | |||
Viewlims | |||
======== | |||
|
|||
Creates two identical panels. Zooming in on the right panel will show | |||
Creates two identical panels. Zooming in on the left panel will show |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this changed; the rectangle is still on the left, and zooming occurs on the right.
# the area to which we are zoomed. | ||
|
||
|
||
class MandelbrotDisplay: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
# the area to which we are zoomed. | |
class MandelbrotDisplay: | |
# the area to which we are zoomed. | |
class MandelbrotDisplay: |
|
||
ax1.set_title("Zoom here") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change Axes to the left one?
That is, if you mean to say, "use the rectangle selector", then maybe rename to "Select here" instead.
# Connect for changing the view limits | ||
ax2.callbacks.connect('xlim_changed', rect) | ||
ax2.callbacks.connect('ylim_changed', rect) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see this part is missing, namely that zooming on the right Axes updates the selector on the left.
Hi @francis-wong are you still interested in working on this? |
Superseeded by #27594 |
PR summary
PR checklist