Why does the 3D plot viewer skew as I rotate the point of view?
28 views (last 30 days)
Show older comments
I basically used line command to draw lines in 3D, the intention being to create a cube with the objective of later using object transforms (translate, scale and rotate) to learn about them. It seems I shall have to write a function to draw the wireframe cube as none exists in MATLAB.
In the plot window there is a button that allows us to rotate the view. This can change the 2D plot view to 3D plot view also as we rotate. However, the axes seem to get skewed as I rotate about. Why is that?
Basically, as I rotate the length of the vertical axis changes (coordinates remain same), the same happens with the other axes. This causes the axes octant (XYZ axes space) to sometimes look like a cube, sometimes longer horizontally and sometimes vertically. How do I make it stop doing this?
0 Comments
Answers (1)
Adam
on 3 Oct 2016
Edited: Adam
on 3 Oct 2016
There is a right-click option when you are in Rotate mode: Rotate Options -> Fixed Aspect Ratio Axes.
axis( hAxes, 'vis3d' )
will do this programmatically.
I use this for rotating a wireframe box also. e.g
2 Comments
Adam
on 3 Oct 2016
You can click on points when you are in the right mode from the Data Cursor mode.
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!