1D plots from 2D data [message #13924] |
Tue, 29 December 1998 00:00 |
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
|
|
|