From cdb8af56b3871f7feb8dfaca49ccb7b9782a16d6 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 18 Feb 2015 15:35:12 +0100 Subject: [PATCH] bugfix: avoid empty parts of the data display --- pylot/core/util/widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 03c0abab..e6905c11 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -52,6 +52,7 @@ class MPLWidget(FigureCanvas): self.figure = Figure() self.canvas = FigureCanvas(self.figure) self.axes = self.figure.add_subplot(111) + self.axes.autoscale(tight=True) self.updateWidget(xlabel, ylabel, title)