>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
>--


It sounds like the right thing to do is to generate the single color field
from the constantarray, then, since Colorbar seems to accept that already.

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]

Reply via email to