XCustomPlot
XCustomPlot copied to clipboard
坐标轴范围问题
//像素坐标转成实际的x,y轴的坐标
float x_val = this->xAxis->pixelToCoord(x_pos);
float y_val = this->yAxis->pixelToCoord(y_pos);
如果坐标轴为时间轴时,float类型需要改为double类型