If a scale is displayed in log or normal scale is determined by the pad not the histogram!
canvas->SetLogx(); pad->SetLogy();
Note that the axis letter (X, Y) are in lowercase.