Hi,
We get the frame in the gif file only when the macro is executed in batch
mode.
I will check.
Cheers,
Olivier
On 3/13/11 11:04 PM, "Marc Escalier" <escalier_at_lal.in2p3.fr> wrote:
>{//used root 5.27/06
> gROOT->SetStyle("Plain");
> gStyle->SetPalette(1);
>
> TCanvas *c1=new TCanvas("c1", "A canvas", 10,0, 800, 600);
> c1->SetLogy();
>
> histo_dummy=c1->DrawFrame(0,1e-4,27,10);
>
> TF1 expontential("expontential","exp(-x)",0,14);
> expontential.Draw("same");
>
> TLegend legend(0.3,0.45,0.8,0.75);
> legend.SetBorderSize(0);
> legend.SetFillColor(kWhite);
> legend.SetFillStyle(1);
> legend.AddEntry("expontential","the explanation","f");
> legend.Draw();
>
> c1->SaveAs("test.gif");
>}
>
Received on Mon Mar 14 2011 - 09:06:15 CET
This archive was generated by hypermail 2.2.0 : Mon Mar 14 2011 - 17:50:01 CET