///方法1 以鼠标当前位置为中心点进行放大缩小
    ui->customplot->axisRect()->setRangeZoomFactor(2);
    ui->customplot->axisRect()->setRangeZoom(Qt::Vertical);
   ///方法2 链接mouseWheel信号进行处理(如果不以鼠标为中心,以Y轴中心点为中心)
    double dCenter = ui->customplot->xAxis->range().center();
    ///扩大区间 (缩小 plottables 鼠标向内滚动) 
    ui->customplot->xAxis->scaleRange(2.0, dCenter);
    ///缩小区间 (放大 plotTables 鼠标向外滚动)  
    ui->customplot->xAxis->scaleRange(0.5, dCenter);