Strange bug…
xtitle disappears whilst requesting logx (in either interpreted or compiled mode).
It depends on the number of lines in misc.txt.
If one removes the last line (line #18), everything’s fine.
The problem arises from version 5.24/00.
No prob with version 5.22/00.
Thanks Olivier.
In that case, this is only the “canvas->SetLogx()” statement that makes it not to work (from 5.24).
TGraph *graph = new TGraph ("misc.txt","%lg %lg") ;
graph->GetXaxis()->SetTitle("foo") ;
//TFile *fout = new TFile ("ztemp.root","recreate") ;
//graph->Write() ;
TCanvas* canvas = new TCanvas ("canvas") ;
//canvas->SetLogx() ;
graph->Draw("al") ;I don’t like the idea of mixing the “output print/plot” part and the “input/create data” part.
The TGraph object and its properties should be independent of it (everything can be saved in a TFile without any plotting).
For sure, I’m missing something (no prob in the past) but isn’t there any other way to deal with this?
TIA,
Z