Change the color of the axis on the right and top

Hi,

I can change the color of the axis on the bottom and left with

h->GetXaxis()->SetAxisColor(4)
h->GetYaxis()->SetAxisColor(4)

How can I change the color for the axis on the top and right side ?

Thanks in advance,
Ming

It depends how you draw the top and right axis. If you use SetTIckx and SetTicky, they have the same attributes has the bottom and left axis. What are you doing exactly ? do you have a small macro ?

In my case, the axes are drawn automatically when histogram->Draw() is called. My simple macro is attached.
Plot.C (245 Bytes)
Plot.C (245 Bytes)
Plot.C (245 Bytes)

The macro you sen have only 2 axes. Bottom and left. I guess you want to change the color of the line frame. In that case do:

c->SetFrameLineColor(4);