I have an animation working pretty much as I want to depict a timeseries of
3D data.
What I'd like to add is a colour bar, single color & fixed size, with the only
tick mark representing a variable for each frame in the timeseries. Thus the
tick will appear to move back and forward along the bar as the frames progress
through the series. The color bar is done, getting the tick location (& tick
label) moving accordingly isn't.
I can read in the value at which I want a tick, but when attached to the tick
tab on the colour bar module, I get told that the value is not a list.
What do I need to do to convert the floating point number to a format I can
use to set the tick location?
Thanks
Brent Wood
The simplest way to make a list is to run your number through List.
However, I think Colorbar won't like a single number, so you may have
to pad the List with a min and max as well.
I did something like this long ago but instead of moving the
tick/number, I created a custom colormap on the fly that notched a
narrow color strip at my number and thus the color changed and
location changed as the value changed, along the fixed background and
range of the "empty" colorbar. That is, from min to number - epsilon
was black, number-epsilon to number+epsilon revealed the color at
that position of, say, a spectral colormap, number+epsilon to max was
black. 6 control points total.
--
Chris Pelkie
Scientific Visualization Producer
618 Rhodes Hall Cornell Theory Center, Cornell University
Ithaca, NY 14853