I am trying to plot the simplest ever ascii file. I want to create a graph using TGraph of an ascii file that has the format
0.2 1.06
0.225 1.15
0.25 1.23
0.275 1.31
0.3 1.39
0.325 1.46
0.35 1.54
0.375 1.61
0.4 1.69
0.45 1.83
0.5 1.98
0.55 2.13
0.6 2.27
0.65 2.42
0.7 2.57
0.8 2.88
0.9 3.19
1 3.51
1.1 3.84
1.2 4.18
1.3 4.53
1.4 4.89
1.5 5.26
1.6 5.65
1.7 6.04
1.8 6.44
2 7.27
2.25 8.37
2.5 9.53
2.75 10.75
3 12.04
3.25 13.38
3.5 14.78
3.75 16.24
4 17.76
4.5 20.96
5 24.38
5.5 28.02
6 31.86
6.5 35.90
7 40.15
8 49.21
9 59.05
10 69.69
I used the following lines
root [1] TGraph g1("p_in_Si.rng", "%lg %lg")
root [2] g1->Draw();
The result is a blank canvas!
I am running in on ubuntu 12.04. Note that the exact same lines do work on vista.
Why is this happening and how can it be fixed?
Thank’s in advance.