Add a margin of 4 pixels around every plot to avoid text going all the way to the edge

This commit is contained in:
Gaute Lindkvist 2019-04-15 09:58:08 +02:00
parent c2032fd948
commit 6f7a75f5c2

View File

@ -87,6 +87,8 @@ void RiuQwtPlotTools::setCommonPlotBehaviour(QwtPlot* plot)
plot->canvas()->setMouseTracking(true);
plot->canvas()->installEventFilter(plot);
plot->plotLayout()->setAlignCanvasToScales(true);
plot->setContentsMargins(4, 4, 4, 4);
}
//--------------------------------------------------------------------------------------------------