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.
plot
->enableAxis
(QwtPlot::xBottom,
false);
div=linearEngine->divideScale(0,33000,50,0,10);
plot
->setAxisScaleDiv
(QwtPlot::yLeft,
div);
plot->setFixedSize(200,33000);
plot->replot()
;
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()
;
To copy to clipboard, switch view to plain text mode
plot.jpg
Thanks for you help!
Bookmarks