TGraph::GetMaximum() asks for more explanation.

In this example

  const float x[3] = {0.0, 1.0, 2.0};
  const float y[3] = {1.0, 1.1, 0.9};
  TGraph * gr1 = new TGraph(3, x, y);
  printf("gr1 maximum %f\n", gr1 -> GetMaximum());

one would expect the printed value to be 1.1. Instead it is -1111.000000. How is this value calculated?

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