QCustomPlot Discussion and Comments

How to set the key range of a graphReturn to overview

Hi ,
Say , I have 200 data points in my graph ,now the key range is from 0 to 199 ,what should i do if i want to remap the data with a new key range , say , form -2 to 2.
I know the class " QCPColorMapData " has a function void QCPColorMapData::setKeyRange ( const QCPRange & keyRange) can remap the key range of a colormap , like this:

colormap->data()->setKeyRange(QCPRange(-2, 2));

but i didn't find some corresponding functions in class "QCPGraph" and "QCPGraphData"
Thank you!

I redrew the graph