Plotting an ascii file

Dear all,
I want to plot the 2nd and 4th column of this “top.cc” file but for each type in different histogram e.g for typ=0 in 1 histogram for typ=1 in 2nd histogram etc. How to do this?
Thanks.

Regards,
Additop.cc (2.0 KB)

You have to read the file with some C++ code (you will find plenty of examples on the web). And then you fill your histogram as you wish. The fill process can be done in the same loop on the file reading one.

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