Do any of you know how to make an axis line and the ticks thicker? I haven’t found anything such as
histo->GetXaxis()->SetLineWidth(x)
so there must be an alternative way.
Thanks
Berta
Do any of you know how to make an axis line and the ticks thicker? I haven’t found anything such as
histo->GetXaxis()->SetLineWidth(x)
so there must be an alternative way.
Thanks
Berta
One possible way:
{
TH1F* h1 = new TH1F("h1","Random 1D Gaussian",100,-4,4);
h1->FillRandom("gaus",10000);
h1->Draw();
gPad->Update();
h1->GetXaxis()->SetLabelOffset(999);
h1->GetXaxis()->SetTickLength(0);
TGaxis *axis = new TGaxis(gPad->GetUxmin(), gPad->GetUymin(),
gPad->GetUxmax(), gPad->GetUymin(),
gPad->GetUxmin(), gPad->GetUxmax(),
510,"+L");
axis->SetLineWidth(4);
axis->Draw();
}