qwt设置相位曲线波形
setAxisScaleEngine( QwtPlot::xBottom, new QwtLogScaleEngine );//!!!!!!!!!!!!!!!!!!
设置曲线标识
// legend
QwtLegend *legend = new QwtLegend;
// insertLegend( legend, QwtPlot::BottomLegend );
设置栅格
// grid
QwtPlotGrid *grid = new QwtPlotGrid;
grid->enableXMin( true );
grid->setMajorPen( Qt::white, 0, Qt::DotLine );
grid->setMinorPen( Qt::gray, 0 , Qt::DotLine );
grid->attach( this );
坐标设置
// axes
// enableAxis( QwtPlot::yRight );//可以在右侧放置坐标
setAxisTitle( QwtPlot::xBottom, "DistanceFreq" );
setAxisTitle( QwtPlot::yLeft, "LightPowerAm[dB]" );