Your code is calling CNiReal64Matrix::SetSize(unsigned int rows, unsigned int cols, NiMatrixAutoInit initializeData = NiMatrixInit), which resizes the matrix to the specified dimensions and zeros out the data. If you're seeing an additional line at 0 in the graph, it's because a row in your matrix still contains the default 0 data because it's not getting populated with data. I suggest looking a little closer at this part of the code:
YdataMtx.SetSize((LU_Id.GetCount()),ObjList.GetCount());
XdataPtr.SetSize(0);
for(i = 0;i < ObjList.GetCount();i ++)
{
tmp = ObjList.GetPrev(ObjPosition);
XdataPtr.Append(tmp.Timecode);
j = (LU_Id.MyFind(tmp.Obj_Id));
YdataMtx(j,i) = tmp.R
ange;
}
It's probably either adding one more row than what's needed in the YdataMtx.SetSize call, or the for loop is not iterating for each row that was allocated in the matrix.
- Elton