How to set 'shading' to 'interp' on a specific plot within a figure

14 ビュー (過去 30 日間)
Laurence hutton-smith
Laurence hutton-smith 2015 年 6 月 2 日
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!

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 2 日
Record the handle of the surf:
sh = surf(....);
then
set(sh, 'EdgeColor', 'interp', 'FaceColor', 'interp');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by