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

gl3d orthographic zoom using modebar button #4239

Closed
colinbrownec opened this issue Oct 1, 2019 · 4 comments
Closed

gl3d orthographic zoom using modebar button #4239

colinbrownec opened this issue Oct 1, 2019 · 4 comments
Labels
feature something new

Comments

@colinbrownec
Copy link

When viewing a 3d plot with the orthographic projection, you can zoom with the scroll wheel, but using the modebar zoom button causes the camera to clip the graph.

From previous discussions about orthographic zooming (#3588) and a merge fixing scroll wheel zooming (#3601) seem to imply this behavior is intentional.

I want to submit this behavior as a bug for the following reasons.

  1. cannot zoom if the user does not have a scroll wheel
  2. modebar behavior should be consistent between plots and projections
  3. the current "slicing" behavior is a graphical bug, not a feature (ie. plot axis are also clipped)

I am including the codepen from 3601 and have updated plotly to use plotly-latest.js

@etpinard
Copy link
Contributor

etpinard commented Oct 2, 2019

Thanks very much posting @colinbrownec

Here's a gif showing the current mouse-drag behaviour under dragmode: 'zoom' for orthographic projections:

Peek 2019-10-02 14-19

@etpinard etpinard added the bug something broken label Oct 2, 2019
@archmoj
Copy link
Contributor

archmoj commented Oct 25, 2019

The #4292 PR fixed relayouting issue related to orthographic scroll zoom. But to address this issue I would suggest adding a new modebar button (i.e. for both perspective and orthographic projections) for scaling the scene. Please note that tweaking the aspectratios for perspective projection can be also be of interest for scaling the 3d graph without changing the camera.eye position.

@etpinard
Copy link
Contributor

Hmm. I'm not sure adding a new modebar buttons is the way to go in the short term. The gl3d modebar is already pretty cluttered.

@archmoj archmoj added feature something new and removed bug something broken labels Oct 25, 2019
@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson

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

No branches or pull requests

4 participants