SetTimeDisplay not working for TMultiGraph

From: Thoma Osiecki <>
Date: Mon, 2 May 2005 05:38:54 -0500 (CDT)


  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->SetTimeFormat("%b %d %H:%M:%S %Z");

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();



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. Received on Mon May 02 2005 - 12:42:40 MEST

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