Hello,
I have a small program that draws a few functions on canvases. I wrote it under Linux RH 7.3 with root 3.05/04 (GCC) and it worked fine. Now I’m at home trying to run it under XP (MSVC and root 3.03/09), but the axis titles don’t show. They do appear when I click Options -> Refresh from the canvas’ pull-down menu.
This is what I do:
TCanvas* c = new TCanvas(…);
TF1 f(…);
f->Draw();
f->GetHistogram()->SetXTitle(“x [cm]”);
gPad->IsModified();
gPad->Update();
c->IsModified();
c->Update();
I have the feeling this has been asked many times before (or something similar), but I coulnd’t find it in the archives, sorry.
Thanks for your help.
Paul