Dear All,
Probably,This is a simple question.
I want to draw a TGraph which data is provided from “file.txt”.
file.txt is …
[ul]
011/3/24,1:00,2780,2630
2011/3/24,2:00,2690,2560
2011/3/24,3:00,2630,2500
2011/3/24,4:00,2610,2500
2011/3/24,5:00,2750,2620
…
[/ul]
Format of “file.txt” is “date,time,value1,value2”.
For example “2011/3/24,1:00,2780,2630”,
“2011/3/24” is date,
“1:00” is time,
“2780” is value1,
“2630” is value2
How to draw TGraph “time vs value1” from “file.txt”?
Simply do
TGraph *gr = new TGraph("file.cvs","%*lf,%lf,%lf,%*lf");
gr->Draw("ap");
??
Please give me advice.
Best Regard,
Kimiaki