Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
f03703e7
Commit
f03703e7
authored
Jun 20, 2013
by
Luke Campagnola
Browse files
corrected exception error message
parent
adda8ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/graphicsItems/PlotCurveItem.py
View file @
f03703e7
...
...
@@ -312,10 +312,10 @@ class PlotCurveItem(GraphicsObject):
if
self
.
opts
[
'stepMode'
]
is
True
:
if
len
(
self
.
xData
)
!=
len
(
self
.
yData
)
+
1
:
## allow difference of 1 for step mode plots
raise
Exception
(
"len(X) must be len(Y)+1 since stepMode=True (got %s and %s)"
%
(
s
tr
(
x
.
shape
)
,
s
tr
(
y
.
shape
))
)
raise
Exception
(
"len(X) must be len(Y)+1 since stepMode=True (got %s and %s)"
%
(
s
elf
.
xData
.
shape
,
s
elf
.
yData
.
shape
))
else
:
if
self
.
xData
.
shape
!=
self
.
yData
.
shape
:
## allow difference of 1 for step mode plots
raise
Exception
(
"X and Y arrays must be the same shape--got %s and %s."
%
(
s
tr
(
x
.
shape
)
,
s
tr
(
y
.
shape
))
)
raise
Exception
(
"X and Y arrays must be the same shape--got %s and %s."
%
(
s
elf
.
xData
.
shape
,
s
elf
.
yData
.
shape
))
self
.
path
=
None
self
.
fillPath
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment