Dear expert,
I am trying to change the label of axis, here i pasted demo script
void can()
{
THttpServer* serv = new THttpServer("http:8080");
TCanvas *c2 = new TCanvas("c2","param");
c2->cd();
serv->Register("/", c2);
TH1F *h;
h = new TH1F("histo","",100,-5.0,5.0);
h->FillRandom("gaus",10000);
h->GetXaxis()->SetTitle("x axis");
h->GetYaxis()->SetTitle("y axis");
auto xax = h->GetXaxis();
xax->SetNdivisions(-5);
xax->CenterLabels();
xax->SetTickLength(0);
for(Int_t i =0; i<5;i++) {xax->ChangeLabel(i+1,-1,-1,-1,-1,-1,Form("%i",i));}
h->Draw();
//http://localhost:8080/
}
It works fine in local-root-browser ,it show all the 5 label
but in web-root browsershow 2 label only i.e 0 and 1
any suggestion?
lease read tips for efficient and successful posting and posting code_
_ROOT Version:ROOT@v6-26-04
Platform: Not Provided
Compiler: Not Provided