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

Home » Public Forums » archive » Contour plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Contour plot [message #81652] Fri, 12 October 2012 00:41 Go to next message
panblosky is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: reading netCDF 4.1.1 using IDL version 6.1
Next Topic: Re: Overlay a coloured boundary on a gray scale image

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

Current Time: Wed Oct 08 18:36:31 PDT 2025

Total time taken to generate the page: 0.00427 seconds