contour plots [message #40424] |
Thu, 05 August 2004 02:13  |
hans.clarke
Messages: 6 Registered: August 2004
|
Junior Member |
|
|
I'm new to idl and I have data for variables f, g and h. How do I
read the data in for all the variables and then make a contour plot?
|
|
|
Re: contour plots [message #40491 is a reply to message #40424] |
Mon, 09 August 2004 22:08  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Hans Clarke writes:
> Sorry, one more question. How can I rewrite the original program to
> see a surface plot. I have tried Surface, gamma, period, f etc but it
> says I can't use 'Irregular or Nlevels and the array gamma must have 2
> dimensions.
Yes, whereas CONTOUR will actually grid the data to make
a 2D array to contour (if you set the IRREGULAR keyword),
you will have to do the work yourself with the SURFACE
command. Here is an article that describes the process:
http://www.dfanning.com/tips/grid_surface.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|