How to set 'shading' to 'interp' on a specific plot within a figure
조회 수: 13 (최근 30일)
이전 댓글 표시
I am trying to create a figure with multiple types of plots within it, I have a surf plot in the figure which I would like to apply 'shading interp', however if I try to just add the line 'shading interp' I receive the error 'Error creating or updating Patch' and it does not plot. However simply applying this to a plot of only the surf does work, is there a way I can specify I only want to change the shading on specific plots inside a figure?
Thanks in advance!
댓글 수: 0
채택된 답변
Walter Roberson
2015년 6월 2일
Record the handle of the surf:
sh = surf(....);
then
set(sh, 'EdgeColor', 'interp', 'FaceColor', 'interp');
추가 답변 (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!