comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » fit image to logarithmic color bar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
fit image to logarithmic color bar [message #62409] Mon, 08 September 2008 03:21
matthias.demuzere is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: how to read a whole fold file?
Next Topic: Create a GEOTiff image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:22:30 PDT 2025

Total time taken to generate the page: 0.00328 seconds