From de4129b3c89be0d31a88c03f44aefc2cd3f227a8 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 4 Feb 2021 23:43:25 +0100 Subject: [PATCH] Set minimum size of MatDataPlot's Canvas That's a cleaner way to resolve #35 and #54. --- src/rqt_plot/data_plot/mat_data_plot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rqt_plot/data_plot/mat_data_plot.py b/src/rqt_plot/data_plot/mat_data_plot.py index 2959a46..55a6cde 100644 --- a/src/rqt_plot/data_plot/mat_data_plot.py +++ b/src/rqt_plot/data_plot/mat_data_plot.py @@ -103,6 +103,7 @@ def __init__(self, parent=None): self.axes.grid(True, color='gray') self.safe_tight_layout() self.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) + self.setMinimumSize(1,1) self.updateGeometry() def resizeEvent(self, event):