Invalid error message in PlotCurveItem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqtgraph |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Lines 314-318 of PlotCurveItem.py (inp branch, commit 312) are currently
if len(self.xData) != len(self.yData)+1: ## allow difference of 1 for step mode plots
else:
if self.xData.shape != self.yData.shape: ## allow difference of 1 for step mode plots
but x and y are not defined, thus raising another error. I assume it should read self.xData.shape and self.yData.shape (and the calls to str aren't needed either).
Thanks Antony!