Y ticks (only) on the right side

Hi,

I am trying to plot on a graph (pad) with the ticks for the y-axis to be on the right side of the plot. I could figure out two methods

(1) gStyle->SetPadTicksy(1)

which, applies the change globally and

(2) c1->Draw(“Y+”);

which does it only for that pad.

The problem (in both of them) is they seem to add (an extra) ticks on the right side, without removing those on the left.

Does anyone know how to get rid of the ticks on the left side?

TIA,
Nikhil

Not true, the solution (2) draws the axis only on the right side.

[quote=“couet”][quote]
The problem (in both of them) is they seem to add (an extra) ticks on the right side, without removing those on the left.
[/quote]
Not true, the solution (2) draws the axis only on the right side.[/quote]

Indeed it works! I don’t know why but it doesn’t give me the same results in all the cases… I think I have something defined somewhere else, which is making the Y+ option work only partially.

Thanks a lot :slight_smile:
Nikhil