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

Home » Public Forums » archive » Re: Displaying data in 3 coodinates
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
Re: Displaying data in 3 coodinates [message #32128] Wed, 18 September 2002 16:53 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Asti Bhatt (astib@cc.usu.edu) writes:

> My z and x are same size arrays and y different size. Now in
> plot_3Dbox, all three of them should be of same size. The data I have
> is like for certain value of y, I have 1000 x and z values. How do I
> plot that ?

I'd recommend a VERY small symbol be used. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Displaying data in 3 coodinates [message #32129 is a reply to message #32128] Wed, 18 September 2002 14:17 Go to previous messageGo to next message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
Hi,

My z and x are same size arrays and y different size. Now in
plot_3Dbox, all three of them should be of same size. The data I have
is like for certain value of y, I have 1000 x and z values. How do I
plot that ?

Thanks,
Asti

"Pavel A. Romashkin" <pavel_romashkin@hotmail.com> wrote in message news:<3D860A03.2E983ED0@hotmail.com>...
> I am not sure I understand the problem.
> p(x,y,z) looks like a valid input for PLOT_3DBOX to me.
> I guess I'd like to know what "correct plot" is in this case.
> Pavel
>
Re: Displaying data in 3 coodinates [message #32141 is a reply to message #32129] Mon, 16 September 2002 09:42 Go to previous messageGo to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I am not sure I understand the problem.
p(x,y,z) looks like a valid input for PLOT_3DBOX to me.
I guess I'd like to know what "correct plot" is in this case.
Pavel

Asti Bhatt wrote:
>
> Hi,
>
> I have data in the form of 3 coordinates. i.e. it creates a point in
> each iteration of the loop - P(x,y,z). All the plotting routines I
> saw require data in form of either vector or z = F(x,y) .
>
> I was wondering if I use errplot and set z as error, would I be
> getting correct plot ?
>
> I would appreciate if somebody can suggest a better way to do it; I am
> sure people would have done it before.
>
> Thanks and regards,
>
> Asti
Re: Displaying data in 3 coodinates [message #32147 is a reply to message #32141] Fri, 13 September 2002 17:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Asti Bhatt (astib@cc.usu.edu) writes:

> I have data in the form of 3 coordinates. i.e. it creates a point in
> each iteration of the loop - P(x,y,z). All the plotting routines I
> saw require data in form of either vector or z = F(x,y) .
>
> I was wondering if I use errplot and set z as error, would I be
> getting correct plot ?

No, you wouldn't get the right plot.

Maybe you are looking for a 3D scatterplot
of some kind. In any case, PLOTS takes XYZ
coordinates.

http://www.dfanning.com/tips/scatter3d.html

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Displaying data in 3 coodinates [message #32215 is a reply to message #32129] Thu, 19 September 2002 10:05 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
The simpliest way is to generate Y like so:

Y_arr = fltarr(1000) + Y

where Y is the single value you have for the thousand-point-long X and Z vectors.
Cheers,
Pavel

Asti Bhatt wrote:
>
> Hi,
>
> My z and x are same size arrays and y different size. Now in
> plot_3Dbox, all three of them should be of same size. The data I have
> is like for certain value of y, I have 1000 x and z values. How do I
> plot that ?
>
> Thanks,
> Asti
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How do I use FORMAT as I would SPRINTF?? Please Help!
Next Topic: Displaying data in 3 coodinates

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

Current Time: Wed Oct 08 15:56:11 PDT 2025

Total time taken to generate the page: 0.00646 seconds