필터 지우기
필터 지우기

Details on surf plot

조회 수: 2 (최근 30일)
Auryn_
Auryn_ 2018년 5월 25일
댓글: jonas 2018년 5월 27일
Hi,
I have a 3D plot that I generated with this code:
a= linspace(0.8,1.2,12);
surf(a,1:59,abs(Z_data),'FaceColor' , 'interp');
and I would like to display the black lines orthogonal to the X axis, but not for the ones orthogonal to the Y axis. I have seen that I can choose the line style for the whole surface, but can I choose a different line style for the different lines orthogonal to the X or Y axis? That is, I want to show each of the a values in the surface grid but not the 59 lines for the y values.
Further, could I label each of these lines orthogonal to the X axis (example like in the image) if I do this:
Thanks in advance for your help!

채택된 답변

jonas
jonas 2018년 5월 25일
As an alternative to waterfall, I just learned that you can change the meshstyle of surfaces
h=surf(peaks)
h.MeshStyle='row';
  댓글 수: 6
Auryn_
Auryn_ 2018년 5월 27일
편집: Auryn_ 2018년 5월 27일
Done!
dy=0;
for i=1:length(a)
ha(i)=text(x(i),y(end)+dy,z(i,end),num2str(a(i)));
end
Thank you very much for your time and support!
jonas
jonas 2018년 5월 27일
No problem, happy to help!

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

추가 답변 (2개)

Steven Lord
Steven Lord 2018년 5월 25일
It sounds like you may want a waterfall plot.

Auryn_
Auryn_ 2018년 5월 26일
Now the second part of the question:
can I add labels on the lines orthogonal to the X axis?
Cheers!
  댓글 수: 2
jonas
jonas 2018년 5월 26일
Right, forgot about that one. Ill edit my answer later today!
Auryn_
Auryn_ 2018년 5월 26일
thanks ;)

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

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by