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

How can I do it? It's easier for me to visualize 3D plots this way.
Thanks

댓글 수: 6

How would this differ from translating the data so that the minimum is (0,0,0) ?
I do not understand your comment. The problem is the z axix location, which is not located in (or doesn't passes through) in the same vertice of x and y axis. Thanks
Can you show us a sample diagram of what you would like?
rbarata's answer moved here
Sure. Here's the pic:
rbarata - what code are you using to create the above plot (the one on the right)?
rbarata
rbarata 2015년 11월 21일
편집: rbarata 2015년 11월 21일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 21일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

태그

질문:

2015년 11월 20일

답변:

2015년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by