QwtPlot

LGPL

A very flexible 2D plot. Built from several of Qwt's other widgets.

[ Qwt docs | Back to Index ]

Styles and Code

Code
windows
sgi
QwtPlot *w; long c1, c2; double x[100], s[100], c[100]; w = new QwtPlot("Two Graphs", 0, 0); c1 = w->insertCurve("sin(x)"); c2 = w->insertCurve("cos(x)"); for( int i=0; i<100; i++ ) { x[i] = (double)i/50.0; s[i] = sin(x[i]); c[i] = cos(x[i]); } w->setCurveData(c1, x, s, 100); w->setCurveData(c2, x, c, 100); w->replot();
QwtPlot *w; long c1, c2; double x[100], s[100], c[100]; w = new QwtPlot("Two Graphs", 0, 0); c1 = w->insertCurve("sin(x)"); c2 = w->insertCurve("cos(x)"); for( int i=0; i<100; i++ ) { x[i] = (double)i/50.0; s[i] = sin(x[i]); c[i] = cos(x[i]); } w->setCurveData(c1, x, s, 100); w->setCurveData(c2, x, c, 100); w->replot(); w->resize( 250, 200 );

[ Back to Index ]

Licenses are noted in grayed out, smaller text. Closed indicates that the widget is available under a closed-source compatible license. Dual licensing is possible.

Provided by the DigitalFanatics, the host of the Independent Qt Tutorial.