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

When selecting a shape using the option menu, render the plot to move the view to the shape #46

Open
Syntaf opened this issue Jul 28, 2015 · 0 comments
Milestone

Comments

@Syntaf
Copy link
Member

Syntaf commented Jul 28, 2015

This would be a nice feature to have that would allow users to immediately jump to the location of the shape as well as outline it. Since we don't have a range feature implemented (only steps) it could be useful to check if the shape lies in the range of the current render, and if not rerender the plot to include the shape.

It would be important to maintain the plot ratio, so if the user is currently viewing the range time: 0 - 1000 , alt: 0 - 20 and the selected shape is located at time: 4356 - 4678, alt: 11 - 14 then the new render should be something along the lines of time: (4356 - (1000-(4678-4356))/2) - (4678 + (1000-(4678-4356))/2), alt: 0 - 20 . This would ensure the viewport stays the same while we simply move to center the selected shape.

@Syntaf Syntaf added this to the 1.15.2 milestone Jul 28, 2015
@Syntaf Syntaf changed the title When selecting a shape using the option menu, render the plot to show the shape When selecting a shape using the option menu, render the plot to move the view to the shape Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant