I am struggling with the Interpolate() method of TGraph2D.
There are some coordinates that for some reason returns 0.0. These coordinates are completely valid because in the plot I can see that they have non-zero value.
This is how my graph looks like drawn with “colz” option:
To reproduce the problem, please download the root file attached and execute:
root yield_graphs.root
graph_yield_nom->Interpolate(750, 500) // this returns a non-zero value
graph_yield_nom->Interpolate(760, 500) // this returns zero
graph_yield_nom->Interpolate(770, 500) // this returns zero
graph_yield_nom->Interpolate(780, 500) // this returns zero
graph_yield_nom->Interpolate(790, 500) // this returns a non-zero value
graph_yield_nom->Interpolate(800, 500) // this returns zero
I cannot really make sense why some coordinates return zero when they should be interpolatable by Delaunay triangle.
I hope the experts here can help.
I think this is a bug and it needs to be fixed. The workaround showed above seems to not work in some cases. Can you please open a GitHub issue on this ?
Thank you,