comparison examples/qwt/simpleplot/simple.d @ 379:a795eeb3b21f

example minor change
author Eldar Insafutdinov
date Sat, 10 Jul 2010 22:16:33 +0100
parents 7341c47790d4
children beb04f46ef4a
comparison
equal deleted inserted replaced
378:7341c47790d4 379:a795eeb3b21f
76 super(cast(QWidget)null); 76 super(cast(QWidget)null);
77 setTitle("A Simple QwtPlot Demonstration"); 77 setTitle("A Simple QwtPlot Demonstration");
78 insertLegend(new QwtLegend(cast(QWidget)null), QwtPlot.RightLegend); 78 insertLegend(new QwtLegend(cast(QWidget)null), QwtPlot.RightLegend);
79 79
80 // Set axis titles 80 // Set axis titles
81 setAxisTitle(xBottom, "x -."); 81 setAxisTitle(xBottom, "x -->");
82 setAxisTitle(yLeft, "y -."); 82 setAxisTitle(yLeft, "y -->");
83 83
84 // Insert new curves 84 // Insert new curves
85 auto cSin = new QwtPlotCurve("y = sin(x)"); 85 auto cSin = new QwtPlotCurve("y = sin(x)");
86 cSin.setRenderHint(QwtPlotItem.RenderAntialiased); 86 cSin.setRenderHint(QwtPlotItem.RenderAntialiased);
87 cSin.setPen(new QPen(new QColor(Qt.red))); 87 cSin.setPen(new QPen(new QColor(Qt.red)));