[SOLVED] QwtPlot margin
-
Hello. My goal is to have many QwtPlot's synchronized by x-scale, but zooming increases number of y-scale digits and graphs are not laying directly under each other. So, I get this picture:
It seems like I should set minimum width of QwtScaleWidget, but after
@graph->axisWidget(QwtPlot::Axis::yLeft)->setMinimumWidth(50);@
scale is laying under canvas:
!http://dl.dropboxusercontent.com/u/11635312/2.png(22)!
How can I set canvas margin or solve problem any other way? Thanks
-
Solved:
graph->axisWidget(QwtPlot::Axis::yLeft)->scaleDraw()->setMinimumExtent();