qwt模版例程学习设置相位曲线波形

来源:互联网 发布:淘宝美工大师级 编辑:程序博客网 时间:2024/06/03 23:42

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]" );

0 0
原创粉丝点击