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

GR: camera angles outside [0,90] do not work #1911

Closed
yha opened this issue Feb 3, 2019 · 4 comments · Fixed by #3590
Closed

GR: camera angles outside [0,90] do not work #1911

yha opened this issue Feb 3, 2019 · 4 comments · Fixed by #3590

Comments

@yha
Copy link
Member

yha commented Feb 3, 2019

Camera angles outside of the range 0..90 are not plotted correctly.
If it's the first plot, the z axis scaling is wrong:

using Plots
wireframe( 0:10, 0:10, (x,y)->x*y, camera=(130,20) )

image

If it's not the first plot, the last used camera angle is repeated:

plts = [wireframe( 0:10, 0:10, (x,y)->x*y, camera=(x,20), title="angle=$x" ) 
        for x in [30,120,60,120,30,-30]]
plot(plts...)

image

The problem also occurs with the vertical angle, though I suppose angles outside of 0..90 are less useful there.

@mkborregaard
Copy link
Member

Thanks for reporting! I had noticed this before but embarassingly it seems as if I didn't open an issue. This also means that the "simple is beautiful" gif on the front page of Plots' docs doesn't work with GR!

@daschw daschw added the GR label Apr 2, 2019
@aramirezreyes
Copy link

I think this still happens

@RodolfoFigueroa
Copy link

Can confirm it still happens.

@BoundaryValueProblems
Copy link
Contributor

Yes, this problem has not been resolved. On the other hand, it works under the pyplot backend.

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

Successfully merging a pull request may close this issue.

7 participants