Hey Wile_E_Coyote,
I’m not setting the range. It seems like unanticipated behavior. For example,
TGraph2D* produceWorkingGraph()
{
TGraph2D* graph = new TGraph2D(1000);
for(int iP = 0; iP < 1000;iP ++)
{
graph->SetPoint(iP,rand()%10/10.0,5,rand()%10/10.0);
}
return graph;
}
TGraph2D* produceNotWorkingGraph()
{
TGraph2D* graph = new TGraph2D(1000);
for(int iP = 0; iP < 1000;iP ++)
{
graph->SetPoint(iP,rand()%10/10.0,-5,rand()%10/10.0);
}
return graph;
}
TGraph2D* a = produceWorkingGraph();
TGraph2D* b = produceNotWorkingGraph();
//no error
a->Draw("p0");
//range error
b->Draw("p0");
The range is being generated within the class, and in the negative case, the range is invalid.
Does this not feel like unanticipated behavior?