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

Home » Public Forums » archive » Re: Black screen movie
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: Black screen movie [message #79592 is a reply to message #79580] Fri, 09 March 2012 07:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sofie Fehlmann writes:

> Yes, I would like to take a snapshot of the Contour plot and put it
> into a movie. However, it is not working, there is just a black
> screen. This is the main part of my 'Readdata':
>
> c1=contour(data,x,y,rgb_table=33,/fill,c_value=userlevels,$
> Position=[0.1, 0.15, 0.9, 0.90],c_color=indgen(levels),$
> title=['Density at t ='+string(time)],,/overplot)
>
> Except of the overplot command, there is no specification how to
> handle the window.
> If I use the following command, I can see the title of my plot in a
> movie, but no contour plot:
>
> loadct, 1
> set_plot,'z',/copy
> device, set_resolution=framedims, set_pixel_depth=24, decomposed=0
>
> for i=0,nframes-1 do begin
> filename ='DATA_000' +strtrim(i,2)+'.tab'
> readdata,filename
>
> xyouts, 0.5, 0.9, 'IDL TITLE', align=0.5, charsize=2, /normal
> timestamp = video.put(stream, tvrd(true=1))
> endfor

Well, I don't know. This is how I would do an animation
of a contour plot:

cgLoadCT, 33
XInterAnimate, Set=[640, 512, 12], /Showload
FOR j=0,11 DO BEGIN
cgContour, cgDemodata(18), /Fill, Background='white', /Outline
XInterAnimate, Frame=j, Window=!D.Window
ENDFOR
XInterAnimate, 20
END

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Matlab!
Next Topic: IDL routines dependencies map maker

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

Current Time: Wed Oct 08 15:59:47 PDT 2025

Total time taken to generate the page: 0.00749 seconds