Hi,
Can you send a small example (we can run) showing the problem ?
Cheers, Olivier
On Mon, 2 May 2005, Thoma Osiecki wrote:
> Hi,
> 
>   I'm using root v4-02-00 on linux.  When I have a TGraph, say TGraph 
> *fStrip, I can set the time format by:
> 
>     TH1F* frame = fStrip->GetHistogram();
>     TAxis* axis = frame->GetXaxis();
>     axis->SetTimeDisplay(1);
>     axis->SetTimeFormat("%b %d %H:%M:%S %Z");
>     axis->SetNdivisions(202,false);
>     axis->SetAxisColor(2);
> 
> But if I have 3 graphs, i.e. fStrip1,2 and 3, with the above already 
> applied to them, then I try:
> 
> When I declare a TMultiGraph *mg1, I do
> 
> TCanvas *c1 = new TCanvas();
> 
> mg1->Add(fStrip1);
> mg1->Add(fStrip2);
> mg1->Add(fStrip3);
> 
> c1->Update();
> 
> and the axis is not in the time format above, when I try this same 
> procedure again, but after the c1->Update() I add the same 6 root lines in 
> the beginning, only with mg1 substituted for fStrip, and still the axis is 
> not in time format.  Any ideas?  Is there something special I need to do 
> to get TMultiGraphs axis to have a time format?   Note, I'm not getting an 
> error, it's just not working.
> 
> 						Tom.
> 
> 
> 
> 
-- 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 7670300Received on Mon May 02 2005 - 14:02:58 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET