Hi,
Change the time format as explained here:
http://root.cern.ch/drupal/content/how-create-axis-time-units
Olivier
On Apr 21, 2012, at 10:28 PM, <perfetto_at_na.infn.it<mailto:perfetto_at_na.infn.it>> wrote:
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 Mon Apr 23 2012 - 10:18:40 CEST
This archive was generated by hypermail 2.2.0 : Mon Apr 23 2012 - 11:50:02 CEST