I ran across an interesting error today and was wondering what I should provide as a fix. When Colorbar is fed the output from AutoColor, but the data going into AutoColor is a single value. Colorbar barfs. The reason is that the Colormap is no longer a colormap type field but a single constant array. Typically, most modules would check that it is expecting a field and if doesn't get one then returns error; however, this is not what happens.

My question is, should it return the error (like others), or should colormap output a colormap field instead of a constant array (my preference)? By the way, colorbar is really nice in that you feed it a one color colormap field and it works--try it.

x=Construct(110,1,1,[0.0 0.0 1.0])
y=Colorbar(x)
Image(y)

David
--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to