using TPad->Print() to create animated GIF

From: Neil Fazel <behzad_at_fnal.gov>
Date: Mon, 20 Jul 2009 09:12:39 -0500


I've been trying to create an animated GIF file using the Print() function of TPad class:

void Print(const char* filename, Option_t* option)

  Save Pad contents in a file in one of various formats.

    if option = 0 - as "ps"

<snip>

                "gif" - a GIF file is produced
                "gif+NN" - an animated GIF file is produced, where NN  
is delay in 10ms units

<snip>

I do something like this:

mycanvases->Print("./out/animated.gif+50");

A .gif file is indeed created, but when I view it in Mac Preview, I only see the first picture saved, without animation. What am I missing here?

Thanks,
Neil Received on Mon Jul 20 2009 - 16:12:49 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 20 2009 - 17:50:02 CEST