Re: Drawing 'empty' TMultiGraph crashes

From: Olivier Couet <couet_at_mail.cern.ch>
Date: Thu, 23 Jun 2005 14:47:41 +0200 (CEST)


> BTW : my intent was to give a title to the multigraph axis ( prior to
> adding the graphs )
> Once the above bug is fixed, would this be possible ?

When you do:

        mg->GetXaxis()->SetTitle("toto"); you need an axis. But the axis is created when the graph is plotted (that's why you need an update), so if there is no graph to plot you cannot get an axis and use GetXaxis(). So the answer to your question is no. OC

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Thu Jun 23 2005 - 14:47:46 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET