TAxis::SetNdivisions doesn't do anything when in log scale?

Hello,

I’m trying to cause a log-scale axis to label the ticks not only every decade but every unit. The following is an example:

{
const int N = 10;
TGraph * graph = new TGraph(N);

int i;
for (i = 0; i < N; ++i) {
graph->SetPoint(i, i+1, i+1);
}

TCanvas * can = new TCanvas(“can”, “can”, 800, 500);
can->SetLogx();
TH1F * hist = can->DrawFrame(2, 0, N+2, N+2);
TAxis * xAxis = hist->GetXaxis();
xAxis->SetNdivisions(10,10,10, false); // one example

graph->SetMarkerStyle(20);
graph->Draw(“P”);
}

Whatever arguments go into SetNdivisions, only the “10” tick is labeled and the others are not. I can also make the “10” label disappear by changing the first argument to 100. But whatever I do, I can’t get it to label 2,3,4, etc. How should I do this?

Thanks,
Abi

xAxis->SetMoreLogLabels();