Uwe,
Thank you for your response. It is helpful to have these references, but I am unfortunately still stuck. I cannot seem to be able to display a curve. I always end up with an empty graph.
I am trying to draw a line-graph-like histogram for now, so not the vertical bar graph. I have the following code (mostly copied from the sample code in the doc folder):
QwtPlot *myPlot;
myPlot = new QwtPlot(QwtText(" "), Lbl_Histogram);
double x[6]= {0,1,2,3,4,5}, y1[6] = {0,1,2,3,4,5};
QwtPlotCurve *curve1 = new QwtPlotCurve(QwtText("Curve 1"));
// copy the data into the curves
curve1->setData(x, y1, 6);
curve1->attach(myPlot);
// finally, refresh the plot
myPlot->replot();
What I end up with is an empty graph in my label. The x and y axes range from 0 to 5. Do you happen to know why I am missing the actual data points?
Thanks so much for your time,
Barbora