Mercurial > hg > octave-lyh
comparison scripts/plot/isocolors.m @ 10635:d1978e7364ad
Print name of function in error() string messages.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 May 2010 22:26:54 -0700 |
parents | 2884758e265b |
children | 693e22af08ae |
comparison
equal
deleted
inserted
replaced
10634:60542efcfa2c | 10635:d1978e7364ad |
---|---|
135 v = vp; | 135 v = vp; |
136 elseif ( ishandle (vp) ) | 136 elseif ( ishandle (vp) ) |
137 pa = vp; | 137 pa = vp; |
138 v = get (pa, "Vertices"); | 138 v = get (pa, "Vertices"); |
139 else | 139 else |
140 error("Last argument is no vertex list and no patch handle"); | 140 error("isocolors: last argument is not a vertex list or patch handle"); |
141 endif | 141 endif |
142 if ( calc_rgb ) | 142 if ( calc_rgb ) |
143 new_col = zeros (size (v, 1), 3); | 143 new_col = zeros (size (v, 1), 3); |
144 new_col(:, 1) = __interp_cube__ (x, y, z, R, v, "values" ); | 144 new_col(:, 1) = __interp_cube__ (x, y, z, R, v, "values" ); |
145 new_col(:, 2) = __interp_cube__ (x, y, z, G, v, "values" ); | 145 new_col(:, 2) = __interp_cube__ (x, y, z, G, v, "values" ); |