Int or size_t for graph x

I haven’t found a way yet to use a mix of doubles for y and size_t or int for x on a graph, is this possible to achieve ?

See all the constructors
https://root.cern/doc/master/classTGraph.html

I.e. no, that’s not something TGraph offers; you will need to convert one into the other, supposedly the int array into an array of double.

1 Like

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