From 548c863f10ed28aa6d63a9ded40507c83a34ec67 Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Tue, 18 Jul 2017 16:17:04 +0200 Subject: [PATCH] [minor] tight_layout for waveformwidget figure --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 8c641461..8cac8fcd 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -be58-dirty +d21a-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index f89d7b99..891eb341 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -600,7 +600,11 @@ class WaveformWidget(FigureCanvas): color='m', lw=1) # update labels of the entire widget self.updateWidget(xlabel, ylabel, title) - + try: + self.figure.tight_layout() + except: + pass + def getPlotDict(self): return self.plotdict