[bugfix] take width of mainwindow for min/max plot estimation

before width was only 80px for initial plot
This commit is contained in:
Marcel Paffrath 2018-06-20 13:55:59 +02:00
parent 910ed66676
commit 7ad36c2305

View File

@ -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: