How can I redefine axis of 2D Histogram?


How can I re-define yaxis of 2D histograms?
In paw, can be done so easily like following:

PAW > null 0 1 0 1
PAW > fu/pl sin(x) 0 1 s
PAW > null 0 2 0 2 s
PAW > fu/pl cos(x) 0 1 s

It appears new axis on the right side of the plot by default.
How can I do something like this in root?



$ROOTSYS/tutorials/hist/twoscales.C (with the ROOT version 5.14)


$ROOTSYS/tutorials/twoscales.C (with older versions)