[SOLVED] QwtPlot margin
3rd Party Software
2
Posts
1
Posters
2.9k
Views
1
Watching
-
wrote on 25 Oct 2013, 06:42 last edited by
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
-
wrote on 25 Oct 2013, 09:23 last edited by
Solved:
graph->axisWidget(QwtPlot::Axis::yLeft)->scaleDraw()->setMinimumExtent();
2/2