Right, maybe I wasn't clear in my post. The color values in my image are from 0...255 but the represent 1e-16..3e-15, so what I really want to do is just label the color bar accordingly. I've realized that I probably only want a few labels (top, bottom, maybe middle) and I can do it by hand. So now the question is somewhat theoretical, but still, how would one convert a generated list of values to a list of strings?

thanks,
jay

Donna L Gresh wrote:

without looking at it it seems that all you might need to do is feed your
list to a different input of Colorbar (there are two inputs: one for the
*locations* of the tics (a value list) and one for the labels to associate
with those locations (a string list). The second one isn't necessary for
your case; that's intended for the situation where you want particular
labels for the tics).

Donna L. Gresh, Ph.D.

Visual Analysis Group
IBM T.J. Watson Research Center
(914) 784-5049

http://www.research.ibm.com/people/g/donnagresh
[EMAIL PROTECTED]


Jay Lyerly <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 03/22/2002
08:06:28 AM

Please respond to [email protected]

Sent by:    [EMAIL PROTECTED]


To:    [email protected]
cc:
Subject:    [opendx-users] value list to string list



Hi,

I'm trying to change the tick labels in a colorbar from the defaults to
a range of numbers that represent the data.  The range (1e-16, 3e-15) is
a simple list with constant stepsize and the Enumerator seems to build
the list easily enough.  Colorbar doesn't like the enumerator output b/c
it wants a stringlist and enumerator builds a valuelist.  Is there a
straightforward way to convert from a valuelist to a stringlist (or a
better way to build a stringlist for a range of numbers)?  I've tried
changing it with format, but I either get a single string with all the
values or other undesirable results.

tia,
jay





Reply via email to