Skip to content
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

Fix: Zoom not working with contour plots #506

Merged
merged 3 commits into from
Jan 6, 2020

Conversation

shoeb-github
Copy link
Contributor

@shoeb-github shoeb-github commented Jan 2, 2020

closes #466. Also reported in #359.

Fixed by requesting redraw when index mapper is updated in contour plots.

@shoeb-github shoeb-github requested review from jwiggins, corranwebster and jvkersch and removed request for jwiggins January 2, 2020 19:05
Comment on lines 155 to 156
self.invalidate_draw()
self.request_redraw()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work. Not sure what self.invalidate_draw() does as the zoom works even without it.

Shoeb Mohammed added 2 commits January 3, 2020 10:21
- because invalidation will require a redraw. By calling only invalidate_draw it is not clear that request_redraw would also be called eventually.
Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shoeb-github shoeb-github merged commit 092b045 into master Jan 6, 2020
@shoeb-github shoeb-github deleted the fix/466_contour_plot_zoom branch January 6, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zoom broken in some demos
3 participants