Esempio n. 1
0
PlotCurve::PlotCurve( Dataplot& plot
					 , const std::wstring& title ) : curve_( new QwtPlotCurve( qstring(title) ) )
												   , series_( 0 ) 
{
    // curve_->setRenderHint( QwtPlotItem::RenderAntialiased );
    curve_->setPen( QPen( Qt::blue) );
    curve_->setStyle( QwtPlotCurve::Lines ); // continuum (or Stics)
    curve_->setLegendAttribute( QwtPlotCurve::LegendShowLine );
    curve_->attach( &plot );
}
Esempio n. 2
0
Trace::Trace( plot& plot
             , const std::wstring& title ) : plot_( &plot )
                                           , curve_( new QwtPlotCurve( qstring(title) ) )
                                           , data_(0) 
{
    curve_->setRenderHint( QwtPlotItem::RenderAntialiased );
    curve_->setPen( QPen( Qt::blue) );
    curve_->setStyle( QwtPlotCurve::Lines ); // continuum (or Stics)
    curve_->setLegendAttribute( QwtPlotCurve::LegendShowLine );
    curve_->attach( plot_ );
}