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

Home » Public Forums » archive » Re: XYZ plotting
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: XYZ plotting [message #44716 is a reply to message #44711] Mon, 11 July 2005 23:50 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
burkina wrote:
> Well, this is probably a silly question, but I cannot find a
> straightforward answer, so I think I'd better ask to someone who
> understanfs IDL much better than me!
>
> I have an ASCII file with a 3D function, like:
>
> 0.55 2.0 0.000198665
> 0.55 2.25 0.000215043
> 0.55 2.5 0.000228681
> 0.55 2.75 0.000241278
> 0.55 3.0 0.000253149
> 0.55 3.25 0.000266940
> 0.55 3.5 0.000287297
> 0.55 3.75 0.000321452
> 0.55 4.0 0.000387827
> 0.55 4.25 0.000547268
> 0.55 4.5 0.00110803
> 0.55 4.75 0.00685613
> 0.55 5.0 64.4346
> 0.55 5.25 1013.68
> 0.6 2.0 0.000353857
> 0.6 2.25 0.000383346
> 0.6 2.5 0.000407687
> .......
>
> Quite obviously, the first is the X value, the second is the Y value
> and the third is the Z value.
>
> I simply would like it to treat it with the contour and the surface
> commands.
> I've found a method in Dave Fanning's page, but I would prefer not to
> use triangular grids. Instead I'd prefer to change the dataset in the
> 2-d array required by contour and 2 linear vectors for x and y.
> I guess I wuold succed in doing this with some loops, but I hoped there
> would be an easier way with IDL. I mean... is there a straightforward
> way to plot your xyz data in IDL?
>
> Alternatively (but I guess it's almost the same idea), I would like to
> plot in the x-y plane the z values with a color code, like an image,
> selecting the ranges for each color as I prefer, likely smoothing the
> image.
>
> Thanks for your help,
>
> Stefano
>

Dear Stefano,

you could have a look at the plot examples of our library. Probably
there is one which fits your needs.

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html

or the examples only

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/idl_work_idl_work.examples.category.htm

cheers

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Giving Up on Windows
Next Topic: erratic EOF encountered when reading in similar data

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

Current Time: Fri Oct 10 13:35:48 PDT 2025

Total time taken to generate the page: 0.63954 seconds