fit image to logarithmic color bar [message #62409] |
Mon, 08 September 2008 03:21 |
matthias.demuzere
Messages: 32 Registered: January 2006
|
Member |
|
|
Dear all,
I am trying to fit my data vector to a logarithmic colorbar. For the
latter, I use the code suggested by David on the following link:
http://www.dfanning.com/graphics_tips/logcb.html.
Now, I have for example a vector X = [4.0, 0.04, 65.88, 3.62, 2.75,
7.04, 1.12,1.65]
whereby my color bar ranges logarithmically from 0.001 to 100. So the
colors for each of this vector point element fit my logarithmic color
bar. I guess I should do something with the scale_vector function, or
bytscl, but I can't seem to get it right??
I need to create a vector which contains a number (corresponding to an
element of vector X) that I can use to extract the correct number
referring to a color from the color bar. For each element, a box is
filled with a specific color (here for I am using POLYFILL, so my
image is not a continuum, but a chain of boxes, each with it's own
color. Now, I need to get the color right following my logarithmic
scale bar....
I hope this is clear and somebody can help me out?
Cheers,
Matthias
|
|
|