Time on axis

From: <perfetto_at_na.infn.it>
Date: Sat, 21 Apr 2012 22:28:42 +0200


Hi All,

in my script I use the following code:

....
TDatime *T0;
T0 = new TDatime( date[0].Data() );
X[0] = T0->Convert();

TDatime *T;
for( Int_t i = 1; i < index; i++ ) {

   T = new TDatime(date[i].Data() );
   X[i] = T->Convert() - X[0];
}
...
h_pmt->GetXaxis()->SetTimeDisplay(1);
h_pmt->Draw();

to put a time on x-axis. The problem is the following, on x-axis the time is drawing in the format: day-hour-min, but I would like to have only minutes increasing with the time (for example: 0 30 60 90 min ... 300 330 min ...)

Can you help me to resolve this problem ?

Thanks in advance
Francesco. Received on Sat Apr 21 2012 - 22:28:47 CEST

This archive was generated by hypermail 2.2.0 : Mon Apr 23 2012 - 11:50:02 CEST