Re: Error in <TGX11TTF::WriteGIF>

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 9 Jun 2010 19:23:01 +0200


I do not see any problem with your script. Note that the directory Mydir must exist before the call to SaveAs.

Rene Brun

asaddiqu_at_ualberta.ca wrote:
> Hi Brun,
>
> yeh this older version is actually part of cdf software. Anyways,
> following is script that gives "Error in <TGX11TTF::WriteGIF>"
> ===================================================//start
> TCanvas * c1 = new TCanvas("c1","MyCanvas", 0,0,700,500);
> c1->cd();
> Int_t n=5;
> Double_t x[n] = {0.09,0.09,0.09,0.08,0.1};
> Double_t y[n] = {1,2,3,4,5};
> gr = new TGraphAsymmErrors(n,x,y);
> gr->Draw("AC");
> Int_t n2 = 5;
> Double_t xMC[n2] = {0.09,0.09,0.09,0.09,0.09};
> gr2 =new TGraphAsymmErrors(n2,xMC,y);
> gr2->SetLineWidth(2);
> gr2->Draw("");
> c1->SaveAs("Mydir/Myhist.gif");
> =====================================================//End
>
> I would appreciate your help.
>
> Cheers, Asif
>
>
>
>
>
>
>
>
>
>
>
>
>
> Quoting "Rene Brun" <Rene.Brun_at_cern.ch>:
>
>> Please send the shortest possible script reproducing your problem.
>> I also strongly suggest to move to a more recent version like 5.26 or
>> 5.27.
>> The version that you use is more than 10 years old!
>>
>> Rene Brun
>>
>> asaddiqu_at_ualberta.ca wrote:
>>> Hi rooters,
>>> I use Version 4.00/08 and whenever is try to write a gif it says:
>>> Error in <TGX11TTF::WriteGIF>: cannot write file: myhist.gif
>>>
>>> Any one can help?
>>>
>>> Cheers, Asif
>>>
>>
>>
>
Received on Wed Jun 09 2010 - 19:23:07 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 10 2010 - 05:50:01 CEST