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

Home » Public Forums » archive » Re: plots?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plots? [message #31798 is a reply to message #31796] Mon, 19 August 2002 21:03 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
helen (bin_zheng_99@yahoo.com) writes:

> I have a problem about using plots. I want to use two plots for two
> different data sets at the same time. If I just use one plots for one
> data set, there is no problem. But when I use two, it doesn't work. It
> seems the two plots interrupt each other. I want to know why?

I really can't tell what you are trying to do, but if you
put a couple of plots into your code so you have a good
reference point, it appears you are at least plotting
into both windows. I've never seen the CONTINUE keyword
before, and can't really tell what it does (or is suppose
to do) in this program.

pro testPlots
arrayT = fltarr(11)
arrayX = fltarr(11)
arrayY = fltarr(11)
window, 1
plot,[0,10],[-10,10], /NoData
x1 = !X & y1 = !Y & p1 = !P
window,2
plot,[0,10],[-5,5], /NoData
x2 = !X & y2 = !Y & p2 = !P
for I=0, 10 Do begin
arrayY[I] = cos(I+1)
arrayX[I] = sin(I+1)
arrayT[I] = I
wset, 1
!X = x1 & !Y = x1 & !P = p1
plots,arrayT[I], arrayX[I], /continue
wset, 2
!X = x2 & !Y = y2 & !P = p2
plots,arrayT[I], arrayY[I], /continue

endfor
end

Does this give you any clues!?

Are you trying to do this?

arrayT = fltarr(11)
arrayX = Sin(fltarr(11) + 1)
arrayY = Cos(fltarr(11) + 1)
Window,3, arrayT, arrayX
Window, 4, arrayT, arrayY

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Weighting Function
Next Topic: Re: Frame-rate of IDL's MPEG movies ?

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

Current Time: Wed Oct 08 20:01:01 PDT 2025

Total time taken to generate the page: 0.59141 seconds