documentation, bugfix
This commit is contained in:
parent
ef8c47e8c8
commit
79bd7ea187
@ -261,6 +261,9 @@ class PlotCurveItem(GraphicsObject):
|
||||
by :func:`mkBrush <pyqtgraph.mkBrush>` is allowed.
|
||||
antialias (bool) Whether to use antialiasing when drawing. This
|
||||
is disabled by default because it decreases performance.
|
||||
stepMode If True, two orthogonal lines are drawn for each sample
|
||||
as steps. This is commonly used when drawing histograms.
|
||||
Note that in this case, len(x) == len(y) + 1
|
||||
============== ========================================================
|
||||
|
||||
If non-keyword arguments are used, they will be interpreted as
|
||||
|
@ -475,7 +475,7 @@ class PlotDataItem(GraphicsObject):
|
||||
|
||||
if self.xClean is None:
|
||||
nanMask = np.isnan(self.xData) | np.isnan(self.yData) | np.isinf(self.xData) | np.isinf(self.yData)
|
||||
if any(nanMask):
|
||||
if nanMask.any():
|
||||
self.dataMask = ~nanMask
|
||||
self.xClean = self.xData[self.dataMask]
|
||||
self.yClean = self.yData[self.dataMask]
|
||||
|
Loading…
x
Reference in New Issue
Block a user