); ui->label_femaleY->setText(""); } //移除图标已逝去的点,避免其占用内存 ui->customPlot->graph(0)->removeDataBefore(key -8); ui->customPlot->graph(1)->removeDataBefore(key-8); //rescalevalue(vertical)axistofitthecurrentdata