Hello,
I have a simple root macro working fine under Linux, but not under Windows. I read some time values from an Oracle db and I want to display the time labels with a given format on the x axis. The code is the following (the program crashes when reaching the line: graph->GetXaxis()->SetTimeDisplay(1); without that line it works, but the x-axis have labels showing the time as a Uint number):
TGraph *graph = new TGraph(nrows,tVect, yVect);
graph->Draw("AL");
graph->GetXaxis()->SetLabelOffset(0.02);
graph->GetXaxis()->SetLabelSize(0.04);
graph->GetXaxis()->SetTimeFormat("#splitline{%d\/%b\/%Y}{ %H:%M:%S}");
graph->GetXaxis()->SetTimeDisplay(1);
gPad->Modified();
Any idea about what could be the problem?
MarinaReceived on Mon Aug 08 2005 - 15:24:49 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET