Mercurial > octave-nkf
comparison scripts/image/imagesc.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 | eb63fbe60fab |
children | a8ce6bdecce5 |
comparison
equal
deleted
inserted
replaced
10634:60542efcfa2c | 10635:d1978e7364ad |
---|---|
113 | 113 |
114 ## use given limits or guess them from the matrix | 114 ## use given limits or guess them from the matrix |
115 if (length (limits) == 2 && limits(2) >= limits(1)) | 115 if (length (limits) == 2 && limits(2) >= limits(1)) |
116 set (ax, "clim", limits); | 116 set (ax, "clim", limits); |
117 elseif (! isempty (limits)) | 117 elseif (! isempty (limits)) |
118 error ("expected data limits to be [lo, hi]"); | 118 error ("imagesc: expected data limits to be [lo, hi]"); |
119 endif | 119 endif |
120 | 120 |
121 endfunction | 121 endfunction |