Contour plot [message #81652] |
Fri, 12 October 2012 00:41  |
panblosky
Messages: 17 Registered: May 2005
|
Junior Member |
|
|
Hi all,
I'm having problems doing this. I have 3 arrays: data, x, y. All of them are 1D. I want to create contour plot of Data with axis x and y.
I tried
contour,data,x,y,/irregular
but the triangulation it produces gives me a too irregular contour that doesn't represent the data I have.
Is there any other way of doing this?
Thanks!
|
|
|
Re: Contour plot [message #81750 is a reply to message #81652] |
Fri, 12 October 2012 05:29  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Andres writes:
> I'm having problems doing this. I have 3 arrays: data, x, y. All of them are 1D. I want to create contour plot of Data with axis x and y.
>
> I tried
>
> contour,data,x,y,/irregular
>
> but the triangulation it produces gives me a too irregular contour that doesn't represent the data I have.
>
> Is there any other way of doing this?
You can take more control over the triangulation the Contour
plot is doing, by using the Triangulate/Trigrid method
yourself. Or, another (usually disappointing) option is
to try to figure out how to use the GridData function
is some reasonable amount of time.
Here is an example of using the Triangulate/Trigrid
approach:
http://www.idlcoyote.com/graphics_tips/griddedfillcontour.ph p
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|