下滚轮缩放时候怎么可以只缩放x轴y轴不变呢
m_pCustomPlot->axisRect()->setRangeZoomAxes(m_pCustomPlot->xAxis, nullptr);
ui->widget->xAxis->setAutoTickStep(false);
ui->widget->xAxis->setTickStep(3600*24);
ui->customplot->xAxis->setTickLabelType(QCPAxis::ltDateTime);
ui->customplot->xAxis->setDateTimeFormat("hh:mm:ss");
ui->customplot->xAxis->setDateTimeSpec(Qt::LocalTime);
ui->customPlot->xAxis->setTickLabelRotation(35); 待更新
ui->customPlot->graph(0)->dataCount();
ui->customPlot->replot();
ui->customPlot->xAxis->range().upper
ui->customPlot->xAxis->range().lower
ui->customPlot->yAxis->setLabel("y轴单位:mA");
if(graph(i)->selected())
customPlot->selectionRect()->setPen(QPen(Qt::black,1,Qt::DashLine));
customPlot->selectionRect()->setBrush(QBrush(QColor(0,0,100,50)));
customPlot->setSelectionRectMode(QCP::SelectionRectMode::srmZoom);
customPlot->xAxis->setUpperEnding(QCPLineEnding::esSpikeArrow);
customPlot->xAxis->setLowerEnding(QCPLineEnding::esDisc);
customPlot->yAxis->setUpperEnding(QCPLineEnding::esSpikeArrow);
customPlot->xAxis->setNumberFormat("d");
customPlot->graph(0)->setBrush(QBrush(QColor(0, 0, 255, 20)));