Hello,
I have the following problem with TPad. In a compiled code, I declared
a TCanvas and draw some histos in it. Everything works fine in this
case.
Then I want to set a Log scale for the pad but I get a segmentation
violation when I try to access the TPad members.
I have done some tests with TCanvas::GetSelectedPad() but it fails...
Here is a part of the code I'am using:
void dedxStudy::writeHists(){
gStyle->SetPaperSize(20,26);
gStyle->SetOptStat(111111);
TCanvas* c1 = new TCanvas("c1","DeDx Analysis",600,800);
TPostScript *ps = new TPostScript(psfile.Data());
c1->Divide(2,3);
c1->cd(1);
//
// here I want to get acces to c1_1 to do c1_1->SetLogx();
//
hBachBin1->Draw();
c1->cd(2);
hBachBin2->Draw();
c1->cd(3);
hBachBin3->Draw();
c1->cd(4);
hBachBin4->Draw();
c1->cd(5);
hBachBin5->Draw();
.......
}
-------------------------------------------------------------
Christophe Suire B204 suire@in2p3.fr
Institut de Recherches Subatomiques phone: +33(0)388106154
23,rue du Loess Bat20 BP28 fax: +33(0)388106614
F-67037 Strasbourg cedex2
-------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET