Skip to content

Commit

Permalink
Set minimum size of MatDataPlot's Canvas
Browse files Browse the repository at this point in the history
That's a cleaner way to resolve #35 and #54.
  • Loading branch information
rhaschke committed Feb 5, 2021
1 parent 91bbc1f commit de4129b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rqt_plot/data_plot/mat_data_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit de4129b

Please sign in to comment.