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

Home » Public Forums » archive » 1D plots from 2D data
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
1D plots from 2D data [message #13924] Tue, 29 December 1998 00:00
raph is currently offline  raph
Messages: 8
Registered: October 1997
Junior Member
Hi All-

I have YANQ (Yet Another Newbie Question), on which I'm hoping some
kind soul will give me a head start. I have a 2D array f(i,j), which
I'd like to plot versus i, bunching jmax points over each i. If I simply
plot f(i,j) versus i, it treats f as a 1D array imax*jmax long, so I get
a plot of f versus i+j*imax.

Think of it as plotting a wave. By default, IDL plots multiple
periods of the wave sequentially but I want to each period over the first.
Is there an IDL routine which does this directly? Can I simply slice the
data and overplot, which in pseudo-F90 would sorta look like

Do j=1,jmax
g=f(:,j)
plot g
Enddo

Any pointers are appreciated,
Raph

------------------------------------------------------------ -----------
William Raphael Hix Email: raph@phy.ornl.gov
Joint Institute for Heavy Ion Research Voice: (423) 576-8763
Oak Ridge National Laboratory Fax: (423) 576-5780
P.O. Box 2008
Oak Ridge, TN 37831-6374
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL5.2 and "corrupted descriptors"
Next Topic: Re: Moving Realized Widgets

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

Current Time: Wed Oct 08 13:38:30 PDT 2025

Total time taken to generate the page: 0.00489 seconds