for(int i=0;i<data_show_C.size();i++) { for(int j=0;j<data_show_C[i].size();j++) { double z =data_show_C[i][j]; mcolorMap->data()->setCell(i,j,z); } }
When I use the setcell function, the program will report an error index out of bounds, but I have no problem printing data with debug. Who can help me?
void QCPColorMapData::setCell(int, int, double) index out of bounds: 0 0 void QCPColorMapData::setCell(int, int, double) index out of bounds: 0 1 void QCPColorMapData::setCell(int, int, double) index out of bounds: 0 2