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

FR: Double click to go back to original zoom and orientation #827

Closed
KronosTheLate opened this issue Jan 26, 2021 · 8 comments
Closed

FR: Double click to go back to original zoom and orientation #827

KronosTheLate opened this issue Jan 26, 2021 · 8 comments

Comments

@KronosTheLate
Copy link
Contributor

Often times one can get a bit lost after zooming too much and/or rotating stuff, especially when the axis is not centered on (0, 0). I would love to double click to return to the original plot, much like is Plotly and PlotlyJS.

@jkrumbiegel
Copy link
Member

With Axis it's ctrl+click but this is not implemented for 3D plots

@KronosTheLate
Copy link
Contributor Author

That works, thanks. I do find The current interactive controls a little unintuitive in general for Makie right now, and would love this as a more inntuitive alternative for people who are used to double click to reset for whatever reason

@lstagner
Copy link

It took me way to long to figure out how to pan and reset the plot. If the interactive controls are going to change might I suggest.

Click + Hold --> Pan
Double Click --> Reset
(Ctrl|Shift) + Click + Hold # 2D only
Scroll --> Zoom # 3D only

@RTbecard
Copy link

RTbecard commented Dec 8, 2021

Are these default controls listed in the docs somewhere? I thought I had read through most of it, but I also missed that Ctrl + click resets the zoom.

@bilderbuchi
Copy link

Are these default controls listed in the docs somewhere? I thought I had read through most of it, but I also missed that Ctrl + click resets the zoom.

Excellent question! Also: Is there a "go back to previous viewport", like e.g. Matplotlib has on right-click (I think)?
I started looking for plot reset, and found it only via this issue (thank you!)

@KronosTheLate
Copy link
Contributor Author

Perhaps a section in the docs on "Interacting with plots" could be nice?

@KronosTheLate
Copy link
Contributor Author

KronosTheLate commented May 13, 2023

I guess this could be bumped, and tagged with "Makie Usability"? It seems, based on this thread, that the current interaction controls are sub-optimal, and I would love a discussion to arrive at a set of controls that a majority feel is inntuitive.

@ffreyer
Copy link
Collaborator

ffreyer commented Aug 22, 2024

This has been added to Camera3D and will be added to Axis3 with #4131 where it becomes relevant. Docs for Axis and soon Axis3 exist. Camera3D documents this too, though it's probably lost in verboseness...
Closing this as done

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

No branches or pull requests

6 participants