Hi,
I am reading in a data file looks something like this:
1.00000e+00 1.16406e+00 1.16406e+00 1.16406e+00 3.54108e-02
2.00000e+00 1.29160e+00 1.29160e+00 1.29160e+00 7.08215-02
3.00000e+00 1.39797e+00 1.39797e+00 1.39797e+00 1.06232e-01
.
.
.
1.00000e+02 3.88716e+00 3.88716e+00 3.88716e+00 3.54108e+00
1.00000e+00 -6.41140e-01 -8.54853e-01 -1.06857e+00 2.84036e+00
.
.
.
1.00000e+02 -7.22261e+00 -6.77120e+00 -7.44832e+00 6.41945e+00
1.00000e+00 4.01140e+00 4.01140e+00 4.21197e+00 5.88821e+00
.
.
.
1.00000e+02 4.91727e+00 4.91727e+00 5.16314e+00 3.59464e+01
I am using TGraph to plot the data. However, for every block of data from 1…100 I would like to set a different marker style. I have tried making if statements which would go through the indicies and set markers for each 100 numbers. This didnt work.
I have also tried reading the data into different arrays (a1,a2,a3… each of size 100) then make different TGraph objects and plot them on the same graph but this doesnt work for TGraph2D.
I would appreciate some feedback.
Cheers.