I am trying to make a plot in ROOT with grid lines. I can make them appear on the primary tick marks but not on the secondary ticks. Here’s a sample macro…
[code]{
TCanvas *c1 = new TCanvas;
TH2I *h2 = new TH2I(“h2”,“title”,10,0,10,10,0,10);
for(Int_t loop = 0; loop <10>Fill(loop,loop);
}
c1->SetGrid();
gStyle->SetGridStyle(0);
h2->GetXaxis()->SetNdivisions(-205);
h2->GetYaxis()->SetNdivisions(-205);
h2->Draw(“text”);
}[/code]
Any ideas about getting the grid to appear on the secondary ticks?
John Estrada