I cant Draw Graph According to My Data

My y values in here:
gunler.txt (3.4 KB)
And my x values in here ndegeri.txt (718 Bytes)

I use TCanvas but I cant draw my graph
Please help me

Hi,

here you can find an example about how to draw a TGraph with time/dates on an axis: Time axis on TGraph
As for reading the values from the files, it depends if you want to use pyroot or the C++ root interface. You can perhaps be inspired by pages like http://www.cplusplus.com/forum/general/30918/ or https://python4astronomers.github.io/files/asciifiles.html .

Cheers,
D

1 Like

I tried this I caould drive graph but my graph is sooooo absurd

What did you actually tried?

Actually this:
https://root.cern.ch/root/roottalk/roottalk98/0209.html
But I wrote my x and y values

Hi,

could you share the macro you are running?

Cheers,
D

unfortunely I cant find my macro I tried rewrire again but my data so long so I cant rewrite

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.