Making an axis logratmical

Is there a way to make a Y-axis to become logritimical?

If you have a TCanvas object, you can use gPad->SetLogy(true);

in my code I have a canvas in which I have a pad which is divided to 2. I write this command for the pad I want only, right?
Will it make only my Y-axis logritmical? I want the X to remain linear.

Yes, it will be logarithmic on the Yaxis only

Thank you, it worked.