Re: Sugestion TGraph Axes Label

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 12 1999 - 16:50:24 MEST


Hi Norbert,
I agree with your request.
However this implies several changes in the TGraph class.
Once we have terminated with our first development version 2.23,
I want to start a reimplementation of the TGraph class.
The new class will have (like in TH1) members fXaxis and fYaxis.
This should solve your problem and give a behaviour similar to TH1.

Rene Brun


Norbert Danneberg wrote:
> 
> Hi,
> 
> what about a little memberfunction TGraph::SetXTitle() and
> TGraph::SetYTitle() which would avoid
> constructs like:
> 
> PT1Graph->Draw("AP");
> PT1Graph->GetHistogram()->SetXTitle("Energy [MeV]");
> PT1Graph->GetHistogram()->SetYTitle("P1");
> PT1Graph->Draw("AP");
> 
> where the graph must be draw two times to make sure that the hisogram
> exists.
> 
> Norbert
> 
> P.S. Maybe there is better solution I do not know.
> 
> --
> 
> Norbert Danneberg
> 
> ETH Zurich - Institute for Particle Physics
>   Laboratory for Nuclear Physics          Phone.: +41-1-633-2034
>   Hoenggerberg                            Fax.:   +41-1-633-1067
>   CH-8093 Zurich
> 
> ETH Zurich - Institute for Particle Physics
>   Paul Scherrer Institute                 Phone.: +41-56-310-3284
>   CH-5232 Villigen PSI                    Fax.:   +41-56-310-4362
> 
> email: Norbert.Danneberg@psi.ch



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET