How to set 'shading' to 'interp' on a specific plot within a figure
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Laurence hutton-smith
il 2 Giu 2015
Commentato: Laurence hutton-smith
il 3 Giu 2015
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 Commenti
Risposta accettata
Walter Roberson
il 2 Giu 2015
Record the handle of the surf:
sh = surf(....);
then
set(sh, 'EdgeColor', 'interp', 'FaceColor', 'interp');
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!