[bugfix] take width of mainwindow for min/max plot estimation
before width was only 80px for initial plot
This commit is contained in:
parent
910ed66676
commit
7ad36c2305
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user