3D plot - x, y,and z axis origin in the same vertice of the cube?

5 views (last 30 days)
How can I do it? It's easier for me to visualize 3D plots this way.
Thanks
  6 Comments
Geoff Hayes
Geoff Hayes on 21 Nov 2015
rbarata - what code are you using to create the above plot (the one on the right)?
rbarata
rbarata on 21 Nov 2015
Edited: rbarata on 21 Nov 2015
Geoff, I'm not sure if I'm understanding correctly your question. I'm not using any code, the pic in the right is what Matlab shows when plotting a 3D vector (for ex). So, it's the default view. What I want it to change it into the left pic and, if possible, make it the default.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 21 Nov 2015
Okay, you are talking about which axes is labeled. For 2D plots, there is an XAxisLocation and YAxisLocation property that allow you to move labels between bottom and top, or left and right, but there is no corresponding ZAxisLocation property (at least up to R2014a), and the properties appear to be ignored when you are in a perspective view.
I suggest that you might be able to get further by using John Barber's Contribution from the File Exchange. If it is not usable immediately then it would at least have all of the proper framework for the work.

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!