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

Home » Public Forums » archive » 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
XYZ plotting [message #44724] Mon, 11 July 2005 09:05
burkina is currently offline  burkina
Messages: 32
Registered: February 2005
Member
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
[Message index]
 
Read Message
Previous Topic: CVS and IDL - RCS tags
Next Topic: Re: CVS and IDL - RCS tags

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

Current Time: Sat Oct 11 03:42:20 PDT 2025

Total time taken to generate the page: 1.20066 seconds