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

Plotly savefig low resolution, doesn't capture whole view #17

Open
davidjtoomer opened this issue Aug 11, 2020 · 3 comments
Open

Plotly savefig low resolution, doesn't capture whole view #17

davidjtoomer opened this issue Aug 11, 2020 · 3 comments

Comments

@davidjtoomer
Copy link
Owner

If you zoom out on the graph, saving the figure only saves it as if it were at the original figure, which makes saving slender graphs difficult. The resulting PNG files are also low resolution.

@davidjtoomer
Copy link
Owner Author

davidjtoomer commented Aug 11, 2020

See Orthographic projection prevents scene camera updates for updates on the save sizing issue.

@davidjtoomer
Copy link
Owner Author

davidjtoomer commented Aug 11, 2020

Upgrade to plotly.py v4.9.0 resolves the save/zoom issue upon loading (no camera scene specified), but does not resolve:

  • scene.camera does not adjust zoom out based on the camera eye norm with orthographic projection
  • switching between features in the modebar resets the zoom to the original state (does not trigger callback though)
  • after changing the view (setting camera specs), the zoom/pan status no longer register when making the PNG

@davidjtoomer
Copy link
Owner Author

davidjtoomer commented Aug 11, 2020

IMPORTANT: The zoom error is fixed if you use toggle between perspective and orthogonal projections before zooming.

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

No branches or pull requests

1 participant