colorbar() ignores how to guess umin, umax from a Champ entity with .colored="on"
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
colorbar() ignores how to guess umin, umax from a Champ entity (with .colored="on")
--> x = -4:6;
--> X = ndgrid(x);
--> [fx, fy] = (rand(X)-0.5, rand(X)-0.5);
--> clf
--> gcf().color_map = jetcolormap(50);
--> champ(x, x, fx, fy)
--> gce().colored = "on";
--> colorbar
at line 175 of function colorbar ( SCI\modules\graphics\macros\colorbar.sci line 188 )
colorbar: Argument #1: Can't retrieve a default value: Decimal number expected.
ERROR LOG:
----------
colorbar: Argument #1: Can't retrieve a default value: Decimal number expected.
HOW TO REPRODUCE THE BUG:
-------------------------
x = -4:6;
X = ndgrid(x);
[fx, fy] = (rand(X)-0.5, rand(X)-0.5);
clf
gcf().color_map = jetcolormap(50);
champ(x, x, fx, fy)
gce().colored = "on";
colorbar
OTHER INFORMATION:
------------------
Work-around: Explicit setting:
L = sqrt(fx.^2 + fy.^2);
colorbar(min(L), max(L));