snippet of my data
0.0 994
0.1 994
0.2 985
0.3 982
0.4 965
0.5 969
0.6 962
0.7 957
0.8 952
My code :
{
TGraph* gr = new TGraph("myFileENERGIE.txt");
gr->Draw("AC*");
}
My question :
How could I plot the same graph but passing the natural logarithm to the datas in the first column ?
Well I don’t know, something simple like TGraph* gr = new TGraph(“myFileENERGIE.txt”, ln(%lg) %lg); ?
I guess, as recommended in other topics in the forum, that I could read my text file and store my data in some vectors but I hope there a faster way.
Thanks !