Odd TGraph Behavior

Hello all!

I am working on making a TGraph of my experimental data. I have the data I am interested in successfully read from file, and that data provides my y-coordinate values. For my x-coordinate values, I have taken the log base 10 of the values 1-50, and stored that in an array. For example, my y coordinate array (data) are: [54.412412,65.41412,etc.] and the corresponding data in the x-coordinate array are: [log10(1),log10(2),etc.]. I used the math.h package from C++ to take the log base 10. When I make this plot using TGraph, I get two lines for one Tgraph (see picture). Any suggestions?


Almost immediately after I posted this I found the bug- I was accidentally graphing with two options that drew lines instead of using just one

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