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

PR: Add a tool to select the water level data with the mouse #255

Merged
merged 21 commits into from
Feb 3, 2019

Conversation

jnsebgosselin
Copy link
Owner

@jnsebgosselin jnsebgosselin commented Feb 3, 2019

Added a tool to select the water level data by clicking with the mouse and dragging the cursor over a rectangular region of the graph.

I decided not to go with the matplotlib RectangularSelector widget because it was not working well when using blitting. The reason is that it was competing with the other features that are implemented in WLCalc that also use blitting (like the data an wl labels that are displayed in the bottom-right corner of the graph). So it was more efficient to code my own custom selector.

I also did some code cleaning and refactoring, so that it is easier to add more navigation and selection tools in the future.

sleect_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant