tklemmer
9th November 2011, 11:38
Hello
I have a series of dataset that I'm trying to plot, which works just fine.
Code looks kinda like this:
QwtPointArrayData *zing;
zing = new QwtPointArrayData(x,y);
QwtPlotCurve plotdata;
plotdata.setStyle( QwtPlotCurve::Dots );
plotdata.setData(zing);
plotdata.attach(qwtPlot);
qwtPlot->replot();
works just fine...
Now I'm trying to give the Points a Different Colors according to ther Y Values but have no clue how?!
How could this be done?
thanks
Tk
I have a series of dataset that I'm trying to plot, which works just fine.
Code looks kinda like this:
QwtPointArrayData *zing;
zing = new QwtPointArrayData(x,y);
QwtPlotCurve plotdata;
plotdata.setStyle( QwtPlotCurve::Dots );
plotdata.setData(zing);
plotdata.attach(qwtPlot);
qwtPlot->replot();
works just fine...
Now I'm trying to give the Points a Different Colors according to ther Y Values but have no clue how?!
How could this be done?
thanks
Tk