Re: Displaying data in 3 coodinates [message #32128] |
Wed, 18 September 2002 16:53  |
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 #32147 is a reply to message #32141] |
Fri, 13 September 2002 17:28   |
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  |
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
|
|
|