Hi Alexander,
you can try with the method:
TAxis->SetNdivisions(Int_t 555) where 555 is just an example... Cheers, Chiara
Alexander Wagner wrote:
>Hi!
>
>Maybe it is a very simple question with an obvious answer
>that I just wasn't able to find...
>
>Consider a TGraph, Histogram or wathever. Now I want to
>lable the axis with numbers, what root does by default. But
>to get it more readable I want less numbers displayed but
>the tickmarks should be there. Ie. from root I get somthing
>like this:
>
> |------|-----|-----|-----|-----|-----|-----|----|
> 1 2 3 4 5 6 7 8 9
>
>And I want something like this
>
> |------|-----|-----|-----|-----|-----|-----|----|
> 2 4 6 8
>
>Searching through TAxis and TAttAxis I came up with no
>solution so far. A hard work arround would be to lable every
>bin explicitly using SetBinLabel().
>
>(The "advanced version" of the problem would be someting
>like "lable 2, 5, 5.5, 8...")
>
>Is there an easy solution I just missed?
>
>TIA!
>
>
>
Received on Fri Jul 15 2005 - 13:05:25 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET