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

Home » Public Forums » archive » Re: Smooth Contour Plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Smooth Contour Plot [message #78255 is a reply to message #78160] Tue, 01 November 2011 07:59 Go to previous message
Sofie Fehlmann is currently offline  Sofie Fehlmann
Messages: 5
Registered: November 2011
Junior Member
I finally found the solution.

Maybe I didn't state the problem very well. I have a matrix with data
points. What I wanted to do is the following: Each point should have a
certain color such that I get a smooth picture. Somehow, when I
changed the number of levels (n_levels), the color scheme just started
from the beginning.

The following pattern worked finally:

levels = 256
step = (Max(data) - Min(data)) / levels
userLevels = IndGen(levels) * step + Min(data)

contour(data,x,y,rgb_table=33,/
fill,c_value=userlevels,c_color=indgen(levels)+1)

Doing so, I have created an array of data-steps. Further, the c_color
command defines the corresponding color.
[Message index]
 
Read Message
Read Message
Previous Topic: wavelength calibration
Next Topic: Smooth Contour Plot

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

Current Time: Fri Oct 10 02:09:10 PDT 2025

Total time taken to generate the page: 1.12201 seconds