RE: TGaxis/TAxis : SetBinLabel()

From: John Idarraga <idarraga_at_cern.ch>
Date: Mon, 4 Jan 2010 09:50:47 -0500


This is interesting, I never though about it. I have been using TGaxis for a while in plots which need more than one axis, but never run into the problem Marc is addressing here. Somehow I would have expected TGaxis inheriting from TAxis, but that is not the case. I guess the question comes to, conceptually, what's the difference between TAxis and TGaxis. Dear ROOT experts ?

cheers,

John

On Mon, 2010-01-04 at 15:37 +0100, Olivier Couet wrote:
> Hi Marc,
> The alphanumeric labels are stored in the TAxis class. Not in TGaxis.
> Olivier
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Marc Escalier
> Sent: Monday, January 04, 2010 3:14 PM
> To: roottalk_at_lxbuild091.cern.ch
> Subject: [ROOT] TGaxis/TAxis : SetBinLabel()
>
> Hello,
>
> from a TH1 histogram, one can do
> myhisto->GetXaxis()->SetBinLabel(NumberOfTheBin,"mylabel")
> (which is a TAxis)
>
> but is there a way to use a SetBinLabel with a TGaxis instead of TAxis ?
>
> thanks
>
Received on Mon Jan 04 2010 - 15:49:14 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 04 2010 - 17:50:01 CET