removed unnecessary scipy import
This commit is contained in:
parent
a972114b4f
commit
f05c10a80f
@ -5,7 +5,6 @@ try:
|
|||||||
except:
|
except:
|
||||||
HAVE_OPENGL = False
|
HAVE_OPENGL = False
|
||||||
|
|
||||||
from scipy.fftpack import fft
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from .GraphicsObject import GraphicsObject
|
from .GraphicsObject import GraphicsObject
|
||||||
import pyqtgraph.functions as fn
|
import pyqtgraph.functions as fn
|
||||||
@ -26,7 +25,6 @@ class PlotCurveItem(GraphicsObject):
|
|||||||
Features:
|
Features:
|
||||||
|
|
||||||
- Fast data update
|
- Fast data update
|
||||||
- FFT display mode (accessed via PlotItem context menu)
|
|
||||||
- Fill under curve
|
- Fill under curve
|
||||||
- Mouse interaction
|
- Mouse interaction
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ from .GraphicsObject import GraphicsObject
|
|||||||
from .PlotCurveItem import PlotCurveItem
|
from .PlotCurveItem import PlotCurveItem
|
||||||
from .ScatterPlotItem import ScatterPlotItem
|
from .ScatterPlotItem import ScatterPlotItem
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import scipy
|
|
||||||
import pyqtgraph.functions as fn
|
import pyqtgraph.functions as fn
|
||||||
import pyqtgraph.debug as debug
|
import pyqtgraph.debug as debug
|
||||||
import pyqtgraph as pg
|
import pyqtgraph as pg
|
||||||
@ -598,33 +597,6 @@ class PlotDataItem(GraphicsObject):
|
|||||||
]
|
]
|
||||||
return range
|
return range
|
||||||
|
|
||||||
#if frac <= 0.0:
|
|
||||||
#raise Exception("Value for parameter 'frac' must be > 0. (got %s)" % str(frac))
|
|
||||||
|
|
||||||
#(x, y) = self.getData()
|
|
||||||
#if x is None or len(x) == 0:
|
|
||||||
#return None
|
|
||||||
|
|
||||||
#if ax == 0:
|
|
||||||
#d = x
|
|
||||||
#d2 = y
|
|
||||||
#elif ax == 1:
|
|
||||||
#d = y
|
|
||||||
#d2 = x
|
|
||||||
|
|
||||||
#if orthoRange is not None:
|
|
||||||
#mask = (d2 >= orthoRange[0]) * (d2 <= orthoRange[1])
|
|
||||||
#d = d[mask]
|
|
||||||
##d2 = d2[mask]
|
|
||||||
|
|
||||||
#if len(d) > 0:
|
|
||||||
#if frac >= 1.0:
|
|
||||||
#return (np.min(d), np.max(d))
|
|
||||||
#else:
|
|
||||||
#return (scipy.stats.scoreatpercentile(d, 50 - (frac * 50)), scipy.stats.scoreatpercentile(d, 50 + (frac * 50)))
|
|
||||||
#else:
|
|
||||||
#return None
|
|
||||||
|
|
||||||
def pixelPadding(self):
|
def pixelPadding(self):
|
||||||
"""
|
"""
|
||||||
Return the size in pixels that this item may draw beyond the values returned by dataBounds().
|
Return the size in pixels that this item may draw beyond the values returned by dataBounds().
|
||||||
|
Loading…
Reference in New Issue
Block a user