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

Home » Public Forums » archive » Re: positioning oplots
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: positioning oplots [message #446 is a reply to message #444] Tue, 04 August 1992 15:10 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
In article <1992Aug4.202655.25345@iscnvx.lmsc.lockheed.com>, kevin@dipl.rdd.lmsc.lockheed.com writes...
> jat@water.ca.gov (Jatinder Singh) writes ...
>
>> Does anyone know how to position 'oplots' ?
>>
>> I'm trying to analyze time-series data by plotting locations and
>> animating against time.
>>
>> My particular problem arises when I have more than one plot
>> per window (setting !p.multi to something other than 0).
>>
>> At the starting frame, I 'plot' the axes with '/nodata'. I
>> also save the axis endpoints from !x(y).window, in an array.
>>
>> In subsequent frames I 'oplot' the data, erase it after a delay,
>> and 'oplot' the next frame. I try to position the data into its
>> respective plot by using 'position' in the 'oplot' routine with
>> 'position' set to the saved axes for that plot. I use 'oplot' because
>> it's somewhat faster than 'plot', I only need to change the data, not the
>> axes, and it gets rid of the flickering associated with 'plot' in a loop.
>>
>> Result: all my plots for subsequent frames end up in the last
>> plot. 'position' seems to have no effect.
>
> I had a similiar problem doing a similiar aplication. Solution: don't use
> !p.position. Before each oplot, insert a !p.multi such that it is set so
> that the next plot will be in the location you want. Example:
>
> (assuming the axis' have already been drawn):
> !p.multi=[2,1,3,0,0]
> oplot,data
>
> The fragment above will do an overplot on the middle plot of a 3 plot window
>
> Kevin Anderson
>

I tried this, and it didn't seem to work. My own suggestion is to keep copies
of the !P, !X and !Y system variables for each plot, and then restore them
before doing any overplots, i.e.

!P.MULTI = ... ; Start plot #1
PLOT, ...
P1 = !P & X1 = !X & Y1 = !Y
etc.

and then

!P = P1 & !X = X1 & !Y = Y1
OPLOT, ...

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Openwindows 3.0 anomaly with widgets
Next Topic: positioning oplots

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

Current Time: Sun Oct 12 08:45:52 PDT 2025

Total time taken to generate the page: 0.48263 seconds