number axis values plotted

From: <flucke_at_mail.desy.de>
Date: Fri, 26 May 2006 20:18:04 +0200 (CEST)


Dear ROOTers,
is there a way to control the number of axis values plotted?

In the attached example I would like to have only the values 0, 2, 4, 6, 8 and 10 plotted next to the axis of the first histogram whose axis ranges from 0 to 10. Having all integer values from 0 to 6 on an axis from 0 to 6 (second histogram) is fine.
As you can see, I found a small trick (third histogram), but that does not solve my general problem that I sometimes want to divide the umber of plotted lables by two.
I did not manage with TAxis->SetNdivisions(...) ...

Cheers

        Gero

-- 
-----------------------------------------------------------------------
Gero Flucke                   office: DESY, Bldg. 67b, room 21
Inst. f. Experimentalphysik           fon: +49 (0)40 8998 2955
Universitaet Hamburg                  fax: +49 (0)40 8998 2959
Luruper Chaussee 149         at CERN: Bldg. 32, office 3-B20
22761 Hamburg                         fon: +41 (0)22 76 77557
Germany                                 or 591 R-016,   73364 



Received on Fri May 26 2006 - 20:18:13 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET