Functions | |
if (nd==3) z | |
x (idx) | |
y (idx) | |
z (idx) | |
endif endfor | if (istart< nargin &&firstnonnumeric > istart) s |
if (isempty(s)) s | |
endif | if (numel(s)==1) ss |
endif | if (istart< nargin &&firstnonnumeric > istart+1) c |
if (isvector(c)) if(columns(c) | |
endif | elseif (isempty(c)) cc |
endif | elseif (firstnonnumeric==istart+1 &&ischar(varargin{istart+1})) c |
while (iarg<=nargin) arg | |
if (ischar(arg)&&strncmpi(arg,"filled", 6)) filled | |
elseif ((ischar(arg)||iscell(arg))&&!have_marker)[linespec | |
if (valid) have_marker | |
if (strncmp(marker,"none", 4)) marker | |
endif else | error ("%s: invalid linespec", fcn) |
if (iarg<=nargin) new args | |
addproperty ("xdata", hg,"data", x) | |
addproperty ("ydata", hg,"data", y) | |
addproperty ("zdata", hg,"data", z) | |
if (exist("cc","var")) addproperty("cdata" | |
else | addproperty ("cdata", hg,"data", c) |
endif | if (exist("ss","var")) addproperty("sizedata" |
else | addproperty ("sizedata", hg,"data", s) |
endif | addlistener (hg,"xdata",@update_data) |
addlistener (hg,"ydata",@update_data) | |
addlistener (hg,"zdata",@update_data) | |
addlistener (hg,"cdata",@update_data) | |
addlistener (hg,"sizedata",@update_data) | |
if (ischar(c)) for i | |
if (filled) set(h | |
if (min(c(:))< clim(1)) clim(1) | |
set (ax,"clim", clim) | |
endif | if (max(c(:)) > clim(2)) set(ax |
endif endif endif | addproperty ("linewidth", hg,"patchlinewidth", 0.5) |
addproperty ("marker", hg,"patchmarker", marker) | |
if (numel(x) > 0) addproperty("markerfacecolor" | |
addproperty ("markeredgecolor", hg,"patchmarkeredgecolor","none") | |
else | addproperty ("markerfacecolor", hg,"patchmarkerfacecolor", get(h,"markerfacecolor")) |
addproperty ("markeredgecolor", hg,"patchmarkeredgecolor", get(h,"edgecolor")) | |
endif | addlistener (hg,"linewidth",@update_props) |
addlistener (hg,"marker",@update_props) | |
addlistener (hg,"markerfacecolor",@update_props) | |
addlistener (hg,"markeredgecolor",@update_props) | |
if (!isempty(newargs)) set(hg | |
if (!ischar(c1)&&rows(c1)==1) c1 | |
if (numel(size1)==1) size1 | |
if (ischar(c1)) if(isempty(z1)) for i | |
endfor endif else | if (isempty(z1)) for i |
Variables | |
function | hg |
nd = varargin{2} | |
fcn = varargin{3} | |
x = varargin{4}(:) | |
y = varargin{5}(:) | |
istart = 6 | |
idx = isnan(x) | isnan (y) | isnan (z) | |
z = zeros (length (x), 0) | |
endif | firstnonnumeric = Inf |
for | i |
break | |
endif else | s = 6 |
c = repmat (c, numel(x), 1) | |
else | cc = __next_line_color__() |
endif | newargs = {} |
filled = false | |
have_marker = false | |
marker = "o" | |
iarg = firstnonnumeric | |
valid = __pltopt__ (fcn, arg, false) | |
data | |
endif | ss |
markerfacecolor | |
flat | |
endif endfor | ax = get (hg, "parent") |
clim = get (ax, "clim") | |
patchmarkerfacecolor | |
none | |
m = get (h, "marker") | |
fc = get (h, "markerfacecolor") | |
ec = get (h, "markeredgecolor") | |
kids = get (h, "children") | |
y1 = get (h, "ydata") | |
z1 = get (h, "zdata") | |
c1 = get (h, "cdata") | |
endif | size1 = get (h, "sizedata") |
endif | hlist = get (h, "children") |
addlistener | ( | hg | , | |
"markeredgecolor" | , | |||
@ | update_props | |||
) |
addlistener | ( | hg | , | |
"markerfacecolor" | , | |||
@ | update_props | |||
) |
addlistener | ( | hg | , | |
"marker" | , | |||
@ | update_props | |||
) |
addlistener | ( | hg | , | |
"sizedata" | , | |||
@ | update_data | |||
) |
addlistener | ( | hg | , | |
"cdata" | , | |||
@ | update_data | |||
) |
addlistener | ( | hg | , | |
"zdata" | , | |||
@ | update_data | |||
) |
addlistener | ( | hg | , | |
"ydata" | , | |||
@ | update_data | |||
) |
addproperty | ( | "markeredgecolor" | , | |
hg | , | |||
"patchmarkeredgecolor" | , | |||
get(h,"edgecolor") | ||||
) |
addproperty | ( | "markeredgecolor" | , | |
hg | , | |||
"patchmarkeredgecolor" | , | |||
"none" | ||||
) |
addproperty | ( | "zdata" | , | |
hg | , | |||
"data" | , | |||
z | ||||
) |
addproperty | ( | "ydata" | , | |
hg | , | |||
"data" | , | |||
y | ||||
) |
addproperty | ( | "xdata" | , | |
hg | , | |||
"data" | , | |||
x | ||||
) |
elseif | ( | (ischar(arg)||iscell(arg))&&! | have_marker | ) |
endif elseif | ( | firstnonnumeric | = =istart+1 &&ischar(varargin{istart+1}) |
) |
endif elseif | ( | isempty(c) | ) |
if | ( | ischar(c1) | ) |
if | ( | numel(size1) | = =1 |
) |
if | ( | ! | ischarc1)&&rows(c1 = =1 |
) |
if | ( | ! | isemptynewargs | ) |
if | ( | numel(x) | , | |
0 | ||||
) |
if | ( | ) |
if | ( | filled | ) |
if | ( | ischar(c) | ) |
if | ( | exist("cc","var") | ) |
if | ( | iarg<= | nargin | ) | [new] |
if | ( | strncmp(marker,"none", 4) | ) |
if | ( | valid | ) |
if | ( | ischar(arg)&&strncmpi(arg,"filled", 6) | ) |
if | ( | isvector(c) | ) |
endif if | ( | istart< nargin &&firstnonnumeric > istart+ | 1 | ) |
endif if | ( | numel(s) | = =1 |
) |
if | ( | isempty(s) | ) |
endif endfor if | ( | istart< nargin &&firstnonnumeric > | istart | ) |
if | ( | nd | = =3 |
) |
set | ( | ax | , | |
"clim" | , | |||
clim | ||||
) |
while | ( | iarg<= | nargin | ) |
x | ( | idx | ) |
y | ( | idx | ) |
z | ( | idx | ) |
break |
c = repmat (c, numel(x), 1) |
c1 = get (h, "cdata") |
cc = __next_line_color__() |
ec = get (h, "markeredgecolor") |
fc = get (h, "markerfacecolor") |
fcn = varargin{3} |
filled = false |
endif firstnonnumeric = Inf |
have_marker = false |
else idx = isnan(x) | isnan (y) | isnan (z) |
istart = 6 |
kids = get (h, "children") |
m = get (h, "marker") |
marker = "o" |
nd = varargin{2} |
newargs = {} |
s = 6 |
x = varargin{4}(:) |
y = varargin{5}(:) |
y1 = get (h, "ydata") |
z = zeros (length (x), 0) |
z1 = get (h, "zdata") |