Help with contours at maximum z-level in surfc
조회 수: 1 (최근 30일)
이전 댓글 표시
How might i achieve it with the following in matlab 2020a:
[X,Y,Z] = peaks(50);
figure
hsc = surfc(X,Y,Z)
colormap jet
colorbar
hsc(2).LevelList = -7:1:8;
hsc(2).ZLocation = 'zmax';
Last line produces 'Unrecognized property 'ZLocation' for class 'matlab.graphics.chart.primitive.Contour'.
댓글 수: 0
채택된 답변
Star Strider
2022년 10월 10일
I asked about this a while ago, and received a repl;y from MathWorks that I sent along to Yair Altman for inclusion in Undocumented MATLAB. See Customizing contour plots part 2 for an approach that will likely work in R2020a.
.
댓글 수: 2
Star Strider
2022년 10월 10일
As always, my pleasure!
If I remember correctly, it was another question on those same lines that prompted me to ask MathWorks. I sent it along to Yair because I was confident that I would likely lose the reference and that Yair would not!
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!