Set the shading of surface or patch graphic objects. Valid arguments for type are
"flat"
- Single colored patches with invisible edges.
"faceted"
- Single colored patches with visible edges.
"interp"
- Color between patch vertices are interpolated and the patch edges are invisible.
If ax is given the shading is applied to axis ax instead of the current axis.
The following code
figure(1); clf sombrero shading faceted title('shading "faceted"') figure(2); clf sombrero shading interp title('shading "interp"') figure (3); clf pcolor (peaks ()) shading faceted title('shading "faceted"') figure (4); clf pcolor (peaks ()) shading interp title('shading "interp"')
Produces the following figures
![]() |
![]() |
![]() |
![]() |