TGraph Line Resolution

Hi,

I am using pyROOT to plot some data points in a TGraph and connect them with a simple line. However, the line resolution appears to be rather low, so I checked the documentation of TGraph for something similar to SetMaxPointsPerLine(), to no avail. It seems like a simple fix, but I cannot seem to fix it effectively. Any advice would be greatly appreciated. Thanks!

ROOT Version: 6.22
Platform: Linux
Compiler: GCC


Welcome To the ROOT forum.

Line resolution ? … can you provide a small example showing what you are talking about ?

you can use “C” instead of “L” when you call Draw() to get smoother connections between the points. Otherwise, you just get straight lines, so the resolution is just defined by the space between your points. It only makes sense to define a resolution when speaking about TF1s

Be careful with C option. It is a “smooth” interpolation, if you do not have enough points and if the variation between to consecutive points are big you may have bouncing effects…