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

Home » Public Forums » archive » Re: animated iplots
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: animated iplots [message #61236 is a reply to message #61235] Thu, 10 July 2008 11:03 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jul 10, 10:15 am, humanumbre...@gmail.com wrote:
> hi ~~
>
> ok , so I have a question.
>
> Trying to get animated line plot in iplot.
> I can't get it to overwrite what's in iplot without the overplot
> keyword, which is not what I want anyway because I only want one line
> instead of 2.
>
> ie,
> iplot, x
> ;modify x
> iplot, x
> -- this creates 2 windows, I only want one.
>
> plot, x
> ;modifiy x
> plot, x
> does exactly what I want, except it's in plot not iplot O_O
>
> So, it should be iplot with only one line at all time, but that line
> is changing.
> Thanks in advance!
> --Justin

I think you will need to set the data on the data object displayed.
Try:
pro iplot_animation_demo
; read in some data
data = randomu(seed, 512)

; create original iTool (getting ID for later use)
iplot, findgen(512), data, identifier=idPlotTool

itcurrent, idPlotTool
id = itGetCurrent(tool=oPlotTool)

; save Plot Vis' ID so we can come back to it later
idPlotVis = oPlotTool->findIdentifiers('*plot', /visualizations,
count=count)
oPlotVis = oPlotTool->getByIdentifier(idPlotVis)

for i = 0, 99L do begin
oDataX = oPlotVis->getParameter('Y')
success = oDataX->setData(randomu(seed, 512))
endfor
end

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Previous Topic: Re: WIDGET_LABEL query.
Next Topic: IDL Benchmark Page?

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

Current Time: Fri Oct 10 12:24:32 PDT 2025

Total time taken to generate the page: 1.67888 seconds