Functions | |
function | shading (varargin)[ax |
if (nargin!=1 &&nargin!=2) print_usage() | |
h2 (:)] | |
if (strcmpi(mode,"flat")) set(h | |
set (h,"edgecolor","none") | |
elseif (strcmpi(mode,"interp")) set(h | |
elseif (strcmpi(mode,"faceted")) set(h | |
set (h,"edgecolor",[0 0 0]) | |
else | error ("unknown argument") |
Variables | |
function | varargin = __plt_get_axis_arg__ ("shading", varargin{:}) |
endif | mode = varargin{1} |
h1 = findobj (ax, "type", "patch") | |
h2 = findobj (ax, "type", "surface") | |
obj = [h1(:) | |
for | n |
facecolor | |
flat | |
interp |
elseif | ( | strcmpi(mode,"faceted") | ) |
elseif | ( | strcmpi(mode,"interp") | ) |
else error | ( | "unknown argument" | ) |
h2 | ( | : | ) |
if | ( | strcmpi(mode,"flat") | ) |
if | ( | nargin! | = 1 &&nargin!=2 |
) |
set | ( | h | , | |
"edgecolor" | ||||
) |
set | ( | h | , | |
"edgecolor" | , | |||
"none" | ||||
) |
function shading | ( | varargin | ) |
h2 = findobj (ax, "type", "surface") |
endif mode = varargin{1} |
function varargin = __plt_get_axis_arg__ ("shading", varargin{:}) |