For each axis, set the range like this maybe will be useful.But I don't know the reason. m_surfaceGraph->axisX()->setRange(-1, SIZE + 1);
m_surfaceGraph->axisX()->setRange(-1, SIZE + 1);