SetPoint range in TGraph

Since the “points” in a TGraph are ALWAYS numbered from 0 to the “total number of points -1”, how does one address

 int x = 5000;
 float  m = 0.5;
 float b = 61.3;
 float y ; 
 for(int i = 200, i<x ; i++) {
     y = mx+b;
    SetPoint(i, i , y);//how should i rewrite this as the range does not start from 0 but 200-4999?

 }

thanks in advance

Try:
MyGraph->SetPoint((i - 200), i, y);
or:
MyGraph->SetPoint(MyGraph->GetN(), i, y); // automatically adds the “next” new point

Thanks