Skip to content

Fix: Zoom not working with contour plots#506

Merged
shoeb-github merged 3 commits into
masterfrom
fix/466_contour_plot_zoom
Jan 6, 2020
Merged

Fix: Zoom not working with contour plots#506
shoeb-github merged 3 commits into
masterfrom
fix/466_contour_plot_zoom

Conversation

@shoeb-github
Copy link
Copy Markdown
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 corranwebster, jvkersch and jwiggins and removed request for jwiggins January 2, 2020 19:05
Comment thread chaco/base_contour_plot.py Outdated
Comment on lines +155 to +156
self.invalidate_draw()
self.request_redraw()
Copy link
Copy Markdown
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
Copy Markdown
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