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