directPainter_m = new QwtPlotDirectPainter();
setAutoReplot( false );
setCanvas( new Canvas() );
plotLayout()->setAlignCanvasToScales( true );
grid
->setPen
(QPen(Qt
::gray,
1, Qt
::DotLine));
grid->setXAxis(0);
grid->setYAxis(0);
grid->enableX(true);
grid->enableXMin(false);
grid->enableY(true);
grid->enableYMin(false);
grid->attach(this);
plotOrigin_m->setValue(0.0,0.0);
plotOrigin_m->setLinePen( Qt::gray, 0.0, Qt::DashLine );
plotOrigin_m->attach( this );
//plotCurve_m->setRenderThreadCount(0);
plotCurve_m->setSymbol(NULL);
plotCurve_m
->setPen
( canvas
()->palette
().
color( QPalette::WindowText ) );
plotCurve_m
->setRenderHint
( QwtPlotItem::RenderAntialiased,
false );
plotCurve_m
->setPaintAttribute
( QwtPlotCurve::ClipPolygons,
true );
plotCurve_m
->setPaintAttribute
( QwtPlotCurve::FilterPoints ,
false );
plotCurve_m
->setPaintAttribute
( QwtPlotCurve::MinimizeMemory ,
false );
setAxisTitle
( QwtPlot::xBottom, xLabel_m
);
setAxisTitle
( QwtPlot::yLeft, yLabel_m
);
connect(zoom_m,
SIGNAL(selected
(QRectF)),
this,
SIGNAL(selectedrect
(QRectF)));
directPainter_m = new QwtPlotDirectPainter();
setAutoReplot( false );
setCanvas( new Canvas() );
zoom_m = new QwtPlotZoomer(canvas());
plotLayout()->setAlignCanvasToScales( true );
QwtPlotGrid *grid = new QwtPlotGrid();
grid->setPen(QPen(Qt::gray, 1, Qt::DotLine));
grid->setXAxis(0);
grid->setYAxis(0);
grid->enableX(true);
grid->enableXMin(false);
grid->enableY(true);
grid->enableYMin(false);
grid->attach(this);
plotOrigin_m = new QwtPlotMarker();
plotOrigin_m->setLineStyle( QwtPlotMarker::HLine );
plotOrigin_m->setValue(0.0,0.0);
plotOrigin_m->setLinePen( Qt::gray, 0.0, Qt::DashLine );
plotOrigin_m->attach( this );
plotCurve_m = new QwtPlotCurve();
//plotCurve_m->setRenderThreadCount(0);
plotCurve_m->setSymbol(NULL);
plotCurve_m->setStyle( QwtPlotCurve::Dots );
plotCurve_m->setPen( canvas()->palette().color( QPalette::WindowText ) );
plotCurve_m->setRenderHint( QwtPlotItem::RenderAntialiased, false );
plotCurve_m->setPaintAttribute( QwtPlotCurve::ClipPolygons, true );
plotCurve_m->setPaintAttribute( QwtPlotCurve::FilterPoints , false );
plotCurve_m->setPaintAttribute( QwtPlotCurve::MinimizeMemory , false );
setAxisTitle( QwtPlot::xBottom, xLabel_m);
setAxisTitle( QwtPlot::yLeft, yLabel_m);
connect(zoom_m, SIGNAL(selected(QRectF)), this, SIGNAL(selectedrect(QRectF)));
To copy to clipboard, switch view to plain text mode
Bookmarks