Animation of a Graph series

Hi,
I have generated a graph series of 25 different graphs. They show a broaden up of a function. To demonstrate that behavior I would like to animate this series in one canvas. Is it possible to do some kind of a “movie” with adding the differnt graphs into one canvas so that the broading runs into that canvas? I did not found a feature like that eather in the documentation or the webpage. Is it possible to do such a animation in root?
Any help is appreciated !
Thanks

Timo

You may get some inspiration from the tutorial anim.C

Rene

Thanks, I did it the way described in the anim.C tutorial. Unfortunable it isnt working, is it a problem updating a graph ? Here is the my code ! It looks like there is nothing drawn in my canvas… I tried it a day long…

TF1 *poisson=new TF1(“poisson”,"[0]*TMath::PoissonI(x,[1])",0,14);
poisson->SetParameters(number_of_hits,raw_poisson_mu);
poisson->SetLineColor(2);
poisson->SetNpx(1000);
poisson->Draw();

TGraph *modified_poisson =
		new TGraph(o,x_modified_poisson_bin,modified_poisson_mc_bin_number[1]);

modified_poisson->SetMarkerColor(1);			
modified_poisson->SetMarkerStyle(23);		    
modified_poisson->SetMarkerSize(1);		    	
modified_poisson->Draw("Psame");

TTimer *timer = new TTimer(100);		
timer->SetCommand("Animate()");			
timer->TurnOn();		

void Animate()
{
if (i<100>Modified();
gPad->Update();
i++;
}
return;
}

May be you should explain what you are trying to animate!
In your code, you never change the object parameters, so I do not see what can be animated.

Hi,

thanks again ! Now its running ! Nice and Smooth…

Cheers