Logarithmic scale

Hi,

I would like to have a log y axis.
I have an array Histogram[10][10] and have defined:

canvas2->cd(1);//->SetLogy();
gPad->SetLogy();
for (int l=0; l<5; l++) {
Histogram[2][l]->SetTitle(“different cut combinations”);
Histogram[2][l]->SetMarkerStyle(l+22);
Histogram[2][l]->SetMarkerColor(l+2);
Histogram[2][l]->Draw(“ESAME”);
}
canvas2->cd(5);//->SetLogy();
gPad->SetLogy();
for (int l=0; l<5; l++) {
Histogram[4][l]->SetTitle(“different cut combinations”);
Histogram[4][l]->SetMarkerStyle(l+22);
Histogram[4][l]->SetMarkerColor(l+2);
Histogram[4][l]->Draw(“ESAME”);
}

The problem is that the first histogram is drawn, the second not!
That means, the first Histogram[2][l] has a logarithmic y-axis but the second Histogram[4][l] does not exist in general!

I am confused because the only difference is [2] vs. [4]…
Both histograms are not empty

Cheers,
Gordon

Sorry…

for the second histogram: canvas2->cd(2) instead of canvas2->cd(5)

Cheers,
Gordon

Can you send a running example reproducing the problem ?