Re: Storing XYPlotter graph as video

2006-01-25 Thread Kevin Ruland


Nandita,

Don't know about an actor, but you can take a sequence of static images 
and make them into a movie (animated gif or mpeg) using ImageMagick.


Kevin

Nandita Mangal wrote:

Hi there,
I had a question,  if there are any  actors /ways to store the results 
plotted on an XY Plotter as a video? My workflow continously plots 
data in a loop and can i store the result at some point as video? If 
not can i store graph as an image?

thanks!
nandita.


Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail. 
 





Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]


Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
Hi there,Thats a good idea. Are there any clues/ links on how to save the plot as an image in ptolemy?Thanks!nandita.Kevin Ruland <[EMAIL PROTECTED]> wrote:  Nandita,Don't know about an actor, but you can take a sequence of static images and make them into a movie (animated gif or mpeg) using ImageMagick.KevinNandita Mangal wrote:> Hi there,> I had a question,  if there are any  actors /ways to store the results > plotted on an XY Plotter as a video? My workflow continously plots > data in a loop and can i store the result at some point as video? If > not can i store graph as an image?> thanks!> nandita.>> > Do you Yahoo!?>
 With a free 1 GB, there's more in store with Yahoo! Mail. >  Posted to the ptolemy-hackers mailing list.  Please send administrativemail for this list to: [EMAIL PROTECTED]__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
Thanks for the quick reply! I guess I can create an actor which  repeatedly takes screenshots (given a certain refresh rate) and saves  to files as you suggested :).  images delay about 10-15 secs.   Matthew Brooke <[EMAIL PROTECTED]> wrote:  Nandita -How many images, and what delay between images? If it's a reasonable number and you have time between refreshes, you could simply do screenshots and then crop them to isolate the plot. Obviously, this becomes way too labor-intensive as the number of images increases... :-)mNandita Mangal wrote:> Hi there,> Thats a good idea. Are there any clues/ links on how to save the plot as > an image in ptolemy?> Thanks!> nandita.> > */Kevin Ruland /* wrote:!
 >
 > > Nandita,> > Don't know about an actor, but you can take a sequence of static images> and make them into a movie (animated gif or mpeg) using ImageMagick.> > Kevin> > Nandita Mangal wrote:>  > Hi there,>  > I had a question, if there are any actors /ways to store the results>  > plotted on an XY Plotter as a video? My workflow continously plots>  > data in a loop and can i store the result at some point as video? If>  > not can i store graph as an image?>  > thanks!>  > nandita.>  >>  >> >  > Do you Yahoo!?> With a free 1 GB, there's more in store with> Yahoo! Mail.>  >> > > >
 > Posted to the ptolemy-hackers mailing list. Please send administrative> mail for this list to: [EMAIL PROTECTED]> > > __> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around> http://mail.yahoo.com> -- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-
		  
What are the most popular cars? Find out at Yahoo! Autos 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
well its an infinitely looping workflow, & I  keep getting values to plot. So I was thinking of makign the user  specify how longĀ  he wanted to video to be (like 2-4 mins) and  depending on that (with refresh rate of specifiied secs) get the images.  Thanks!  nandita.Matthew Brooke <[EMAIL PROTECTED]> wrote:   > images delay about 10-15 secs...and how many images in total?mNandita Mangal wrote:> Thanks for the quick reply! I guess I can create an actor which > repeatedly takes screenshots (given a certain refresh rate) and saves to > files as you suggested :).> images delay about 10-15 secs.> > > */Matthew Brooke /* wrote:> > > Nandita -> > How!
  many
 images, and what delay between images? If it's a reasonable> number and you have time between refreshes, you could simply do> screenshots and then crop them to isolate the plot. Obviously, this> becomes way too labor-intensive as the number of images increases... :-)> > m> > > Nandita Mangal wrote:>  > Hi there,>  > Thats a good idea. Are there any clues/ links on how to save the> plot as>  > an image in ptolemy?>  > Thanks!>  > nandita.>  >>  > */Kevin Ruland /* wrote:>  >>  >>  > Nandita,>  >>  > Don't know about an actor, but you can take a sequence of static> images>  > and make them into a movie (animated gif or mpeg) using ImageMagick.>  >>  > Kevin>  >!
 ;>
  > Nandita Mangal wrote:>  > > Hi there,>  > > I had a question, if there are any actors /ways to store the> results>  > > plotted on an XY Plotter as a video? My workflow continously plots>  > > data in a loop and can i store the result at some point as> video? If>  > > not can i store graph as an image?>  > > thanks!>  > > nandita.>  > >>  > >>  >> >  > > Do you Yahoo!?> With a free 1 GB, there's more in store with>  > Yahoo! Mail.>  > >>  >>  >>  >>  >> >  > Posted to the ptolemy-hackers maili!
 ng list.
 Please send> administrative>  > mail for this list to:> [EMAIL PROTECTED]>  >>  >>  > __>  > Do You Yahoo!?>  > Tired of spam? Yahoo! Mail has the best spam protection around>  > http://mail.yahoo.com>  >> > -- > > -> Matthew Brooke, Ph.D.> Marine Sciences Research Building, Room #3407> University of California> Santa Barbara, CA 93106-6150> ph: (805) 893-7108 fx: 805-893-8062> [EMAIL PROTECTED]> -> > > > > What are the most popular cars? Find out at Yahoo! !
 Autos
 > >  >-- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Storing XYPlotter graph as video

2006-01-31 Thread Christopher Brooks
Hi Nandita,

Ptplot can export Encapsulated Postscript (EPS) files, see the 
PlotBox.export() method.

We have contributed code for exporting to png, but did not fold it in
because it is probably GPL'd and want to keep Ptplot clean of GPL.
The code can be found at
http://ptolemy.eecs.berkeley.edu/java/ptplot/exportPNG-0.0.1.patch.gz

It might be possible to do this in a non-GPL'd fashion.
Or, you could hack in the changes and see if it works for you.

_Christopher 




well its an infinitely looping workflow, & I  keep getting values to plot. 
   So I was thinking of makign the user  specify how long  he wanted to video t
   o be (like 2-4 mins) and  depending on that (with refresh rate of specifiied
secs) get the images.
  Thanks!
  nandita.

Matthew Brooke <[EMAIL PROTECTED]> wrote:  

 > images delay about 10-15 secs.

..and how many images in total?

m

Nandita Mangal wrote:
> Thanks for the quick reply! I guess I can create an actor which 
> repeatedly takes screenshots (given a certain refresh rate) and saves to 
> files as you suggested :).
> images delay about 10-15 secs.
> 
> 
> */Matthew Brooke 
/* wrote:
> 
> 
> Nandita -
> 
> How many images, and what delay between images? If it's a reasonable
> number and you have time between refreshes, you could simply do
> screenshots and then crop them to isolate the plot. Obviously, this
> becomes way too labor-intensive as the number of images increases... 
   :-)
> 
> m
> 
> 
> Nandita Mangal wrote:
>  > Hi there,
>  > Thats a good idea. Are there any clues/ links on how to save the
> plot as
>  > an image in ptolemy?
>  > Thanks!
>  > nandita.
>  >
>  > */Kevin Ruland /* wrote:
>  >
>  >
>  > Nandita,
>  >
>  > Don't know about an actor, but you can take a sequence of static
> images
>  > and make them into a movie (animated gif or mpeg) using ImageMagic
   k.
>  >
>  > Kevin
>  >
>  > Nandita Mangal wrote:
>  > > Hi there,
>  > > I had a question, if there are any actors /ways to store the
> results
>  > > plotted on an XY Plotter as a video? My workflow continously plo
   ts
>  > > data in a loop and can i store the result at some point as
> video? If
>  > > not can i store graph as an image?
>  > > thanks!
>  > > nandita.
>  > >
>  > >
>  >
> -
   ---
>  > > Do you Yahoo!?> With a free 1 GB, there's more in store with
>  > Yahoo! Mail.
>  > >
>  >
>  >
>  >
>  >
> -
   ---
>  > Posted to the ptolemy-hackers mailing list. Please send
> administrative
>  > mail for this list to:
> [EMAIL PROTECTED]
>  >
>  >
>  > __
>  > Do You Yahoo!?
>  > Tired of spam? Yahoo! Mail has the best spam protection around
>  > http://mail.yahoo.com
>  >
> 
> -- 
> 
> -
> Matthew Brooke, Ph.D.
> Marine Sciences Research Building, Room #3407
> University of California
> Santa Barbara, CA 93106-6150
> ph: (805) 893-7108 fx: 805-893-8062
> [EMAIL PROTECTED]
> -
> 
> 
> 
> 
> What are the most popular cars? Find out at Yahoo! Autos 
> 
>  >

-- 

-
Matthew Brooke, Ph.D.
Marine Sciences Research Building, Room #3407
University of California
Santa Barbara, CA  93106-6150
ph: (805) 893-7108   fx: 805-893-8062
[EMAIL PROTECTED]
-


Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]


Re: Storing XYPlotter graph as video

2006-01-31 Thread Nandita Mangal
  thanks for the link! Also I guess i can use PlotBox.exportImage() to getBufferedImage of plot instead.  Christopher Brooks <[EMAIL PROTECTED]> wrote:  Hi Nandita,Ptplot can export Encapsulated Postscript (EPS) files, see the PlotBox.export() method.We have contributed code for exporting to png, but did not fold it inbecause it is probably GPL'd and want to keep Ptplot clean of GPL.The code can be found athttp://ptolemy.eecs.berkeley.edu/java/ptplot/exportPNG-0.0.1.patch.gzIt might be possible to do this in a non-GPL'd fashion.Or, you could hack in the changes and see if it works for you._Christopher well its an infinitely looping workflow, & I  keep getting values to plot.So I was thi!
 nking of
 makign the user  specify how long  he wanted to video t   o be (like 2-4 mins) and  depending on that (with refresh rate of specifiiedsecs) get the images.  Thanks!  nandita.Matthew Brooke  wrote:   > images delay about 10-15 secs...and how many images in total?mNandita Mangal wrote:> Thanks for the quick reply! I guess I can create an actor which > repeatedly takes screenshots (given a certain refresh rate) and saves to > files as you suggested :).> images delay about 10-15 secs.> > > */Matthew Brooke /* wrote:> > > Nandita -> > How many images, and what delay between images? If it's a reasonable> number and you have time between refreshes, you could simply do>
 screenshots and then crop them to isolate the plot. Obviously, this> becomes way too labor-intensive as the number of images increases...:-)> > m> > > Nandita Mangal wrote:>  > Hi there,>  > Thats a good idea. Are there any clues/ links on how to save the> plot as>  > an image in ptolemy?>  > Thanks!>  > nandita.>  >>  > */Kevin Ruland /* wrote:>  >>  >>  > Nandita,>  >>  > Don't know about an actor, but you can take a sequence of static> images>  > and make them into a movie (animated gif or mpeg) using ImageMagic   k.>  >>  > Kevin>  >>  > Nandita Mangal
 wrote:>  > > Hi there,>  > > I had a question, if there are any actors /ways to store the> results>  > > plotted on an XY Plotter as a video? My workflow continously plo   ts>  > > data in a loop and can i store the result at some point as> video? If>  > > not can i store graph as an image?>  > > thanks!>  > > nandita.>  > >>  > >>  >> -   --->  > > Do you Yahoo!?> With a free 1 GB, there's more in store with>  > Yahoo! Mail.>  > >>  >>  >>  >>  >>
 -   --->  > Posted to the ptolemy-hackers mailing list. Please send> administrative>  > mail for this list to:> [EMAIL PROTECTED]>  >>  >>  > __>  > Do You Yahoo!?>  > Tired of spam? Yahoo! Mail has the best spam protection around>  > http://mail.yahoo.com>  >> > -- > > -> Matthew Brooke, Ph.D.> Marine Sciences Research Building, Room #3407> University of California> Santa Barbara, CA 93106-6150> ph: (805) 893-7108 fx: 805-893-8062> [EMAIL PROTECTED]
 .edu 
   > -> > > > > What are the most popular cars? Find out at Yahoo! Autos > >  >-- -Matthew Brooke, Ph.D.Marine Sciences Research Building, Room #3407University of CaliforniaSanta Barbara, CA  93106-6150ph: (805) 893-7108   fx: 805-893-8062[EMAIL PROTECTED]-Posted to the ptolemy-hackers mailing list.  Please send administrativemail for this list to: [EMAIL PROTECTED]
		  
What are the most popular cars? Find out at Yahoo! Autos