From 7ad36c2305e8cfa61c554a75889b02953ba39a2e Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 20 Jun 2018 13:55:59 +0200 Subject: [PATCH] [bugfix] take width of mainwindow for min/max plot estimation before width was only 80px for initial plot --- pylot/core/util/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index dd9de3c6..af41dcdb 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -659,7 +659,7 @@ class WaveformWidgetPG(QtGui.QWidget): create min/max array for fast plotting (approach based on obspy __plot_min_max function) :returns data, time_ax ''' - npixel = self.width() + npixel = self.orig_parent.width() ndata = len(trace.data) pts_per_pixel = ndata/npixel if pts_per_pixel < 2: