cp
28th February 2014, 02:45
Hi,
When I use the QwtPlot,I have a problem with it.If I set the size(width or height) of the plot larger than 32767,and I set the scale div of axis equal with the size(width or height) of plot.There will appear a black area in the bottom of the plot.Why?? Here is some code and picture in forrow.
QwtPlot *plot = new QwtPlot();
plot->enableAxis(QwtPlot::xBottom,false);
QwtScaleDiv div;
QwtLinearScaleEngine *linearEngine=new QwtLinearScaleEngine();
div=linearEngine->divideScale(0,33000,50,0,10);
plot->setAxisScaleDiv(QwtPlot::yLeft,div);
plot->setFixedSize(200,33000);
plot->replot()
;
10087
Thanks for you help!
When I use the QwtPlot,I have a problem with it.If I set the size(width or height) of the plot larger than 32767,and I set the scale div of axis equal with the size(width or height) of plot.There will appear a black area in the bottom of the plot.Why?? Here is some code and picture in forrow.
QwtPlot *plot = new QwtPlot();
plot->enableAxis(QwtPlot::xBottom,false);
QwtScaleDiv div;
QwtLinearScaleEngine *linearEngine=new QwtLinearScaleEngine();
div=linearEngine->divideScale(0,33000,50,0,10);
plot->setAxisScaleDiv(QwtPlot::yLeft,div);
plot->setFixedSize(200,33000);
plot->replot()
;
10087
Thanks for you help!