diff --git a/pyqtgraph/graphicsItems/PlotCurveItem.py b/pyqtgraph/graphicsItems/PlotCurveItem.py
index 881dcf2d333c0114de4aa6c17ccbe111e876997f..742c73ef885dc360fa626a6e4857a0fc8cff9842 100644
--- a/pyqtgraph/graphicsItems/PlotCurveItem.py
+++ b/pyqtgraph/graphicsItems/PlotCurveItem.py
@@ -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
diff --git a/pyqtgraph/graphicsItems/PlotDataItem.py b/pyqtgraph/graphicsItems/PlotDataItem.py
index 1ae528ba2f4609085ca0d6c854a7bcb415c86e7c..f76a8b7423509aa676f7aca89c56fcfa960f3c49 100644
--- a/pyqtgraph/graphicsItems/PlotDataItem.py
+++ b/pyqtgraph/graphicsItems/PlotDataItem.py
@@ -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]