// The problem is the axis titles of a TF1 aren't showing // under Windows XP, with Root 3.03/09 // Only after Options -> Refresh they pop up. // // PB Dec 22 2003 (paul.balm@nikhef.nl) #include "TApplication.h" #include "TCanvas.h" #include "TF1.h" #include "TH1.h" int main(int argc, char* argv[]) { TApplication theApp = TApplication("Analysis", &argc, argv); TF1* f = new TF1("f1","sin(x)/x",0,10); TCanvas* tc = new TCanvas("fitshape_life_signal","Signal shape",600,40,300,300); f->Draw(); f->GetHistogram()->SetXTitle("ctau [cm]"); f->GetHistogram()->SetYTitle("probability density"); gPad->IsModified(); gPad->Update(); f->GetHistogram()->Draw(); f->Draw("SAME"); theApp.Run(kTRUE); return 0; }