Mercurial > jwe > octave
changeset 30725:25de51cb4123
fill3.m: Re-write call to __patch__ to match new function signature (bug #61782).
* scripts/plot/draw/fill3.m: Re-write call to __patch__ to match new function
with only one output.
Noticed when running "demo fill3".
Addition to cset 36d940c58c2e.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Mon, 07 Feb 2022 10:46:17 +0900 |
parents | a885bdb22374 |
children | 08b08b7f05b2 |
files | scripts/plot/draw/fill3.m |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/fill3.m Sun Feb 06 15:47:43 2022 -0800 +++ b/scripts/plot/draw/fill3.m Mon Feb 07 10:46:17 2022 +0900 @@ -154,14 +154,9 @@ ## For Matlab compatibility, return 1 patch object for each column for j = 1 : columns (x) if (one_color) - [htmp, err] = __patch__ (hax, x(:,j), y(:,j), z(:,j), ... - cdata, opts{:}); + htmp = __patch__ (hax, x(:,j), y(:,j), z(:,j), cdata, opts{:}); else - [htmp, err] = __patch__ (hax, x(:,j), y(:,j), z(:,j), ... - cdata(:,j), opts{:}); - endif - if (err) - print_usage (); + htmp = __patch__ (hax, x(:,j), y(:,j), z(:,j), cdata(:,j), opts{:}); endif hlist(end+1, 1) = htmp; endfor