QCustomPlot Discussion and Comments

how to rescale X and Y Axis rangeReturn to overview

in my program, i want to reset the plot with click a pushButton after i drag or zoom my plot ramdonly. so i set the ploter interactions with

ploter->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectPlottables);
//ploter point to a QCustomPlot object.

after i chaged the ploter with my mouse interaction, i want to reset my ploter to initial state that the range lower and upper is at fixed numbers. then i make a button to reset, whose clicked action connect to a slot showed as follows
void RealTimeWindow::resetPloterSlot()

but when i clicked the button i maked, it could not work. my ploter could not to reset its range. why? and how to do? thank you very much.

addreplot() finally