Dear ROOT developpers, I am trying to do a (in principle) simple thing which turns out to be more complicated than expected (ROOT version 3.00/06 on linux-i686). Goal: To plot a 1D histogram with the ticks drawn only on the right y-axis. Trials: 1) TPad::SetTicks(whatever_tx,1) method does not produce the result I want because the ticks are drawn on _both_ left and right y-axis. OK ... another possibility then is to create a new TGaxis with the desired characteristics (as e.g. proposed in the Tutorials for superimposing two histos with different scales: http://root.cern.ch/root/html/examples/twoscales.C.html) which then I can plot on the right y-axis position. For that, I would like also to delete the left-side y-axis ... 2) Let's try not to plot both axis using THistPainter::Paint("AH") ... This does not work because the "AH" option is not yet implemented (although a workaround exists for not plotting the _labels_ : http://root.cern.ch/root/roottalk/roottalk01/0538.html). 3) Let's set then the y-axis color to white ... This works but only for the left y-axis (the right one remains there, with black color, even after refreshing the canvas). However, if I do now gPad->SetTicky(1), then suddenly the right axis gets also white ... Could you please: * Implement "AH" drawing option for histos ? * Modify TPad::SetTicks to accept more arguments allowing for right- (top-) only y- (x-) axis ticks ? * Modify TAttAxis::SetAxisColor(Color_t color) so that it changes both left/right (bottom/top) color for y- (x-) axis ? Perhaps there is an easier way somehow but I could'nt figure it out ... Thanks again in advance, -- David D'ENTERRIA - Marie-Curie PostDoc Fellow - TAPS·PHENIX·ALICE Groupe Photons SUBATECH tel: +33 2 51 85 85 60 4, A. Kastler BP 20722 · 44307 Nantes fax: +33 2 51 85 84 24 http://www-subatech.in2p3.fr/~photons mailto:enterria@in2p3.fr ---------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET