Mercurial > projects > qtd
diff examples/qwt/simpleplot/simple.d @ 383:bd7f485e3573
More debug fixes
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Mon, 12 Jul 2010 22:50:58 +0300 |
parents | 347e4c7a9ba1 |
children |
line wrap: on
line diff
--- a/examples/qwt/simpleplot/simple.d Mon Jul 12 20:36:07 2010 +0300 +++ b/examples/qwt/simpleplot/simple.d Mon Jul 12 22:50:58 2010 +0300 @@ -32,9 +32,9 @@ class SimpleData: QwtData { // The x values depend on its index and the y values - // can be calculated from the corresponding x value. + // can be calculated from the corresponding x value. // So we don't need to store the values. - // Such an implementation is slower because every point + // Such an implementation is slower because every point // has to be recalculated for every replot, but it demonstrates how // QwtData can be used. @@ -80,7 +80,7 @@ // Set axis titles setAxisTitle(xBottom, "x -->"); setAxisTitle(yLeft, "y -->"); - + // Insert new curves auto cSin = new QwtPlotCurve("y = sin(x)"); cSin.setRenderHint(QwtPlotItem.RenderAntialiased); @@ -98,7 +98,7 @@ cCos.setData(new SimpleData(&mycos, nPoints)); // Insert markers - + // ...a horizontal line at y = 0... auto mY = new QwtPlotMarker(); mY.setLabel(new QwtText("y = 0")); @@ -127,5 +127,5 @@ scope plot = new Plot; plot.resize(600,400); plot.show(); - return a.exec(); + return a.exec(); }