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
b09862d2
Commit
b09862d2
authored
Apr 23, 2012
by
Luke Campagnola
Browse files
bugfix: PlotDataItem now checks for inf as well as nan in data.
parent
edb7c514
Changes
1
Hide whitespace changes
Inline
Side-by-side
graphicsItems/PlotDataItem.py
View file @
b09862d2
...
...
@@ -389,7 +389,7 @@ class PlotDataItem(GraphicsObject):
if
self
.
xData
is
None
:
return
(
None
,
None
)
if
self
.
xDisp
is
None
:
nanMask
=
np
.
isnan
(
self
.
xData
)
|
np
.
isnan
(
self
.
yData
)
nanMask
=
np
.
isnan
(
self
.
xData
)
|
np
.
isnan
(
self
.
yData
)
|
np
.
isinf
(
self
.
xData
)
|
np
.
isinf
(
self
.
yData
)
if
any
(
nanMask
):
x
=
self
.
xData
[
~
nanMask
]
y
=
self
.
yData
[
~
nanMask
]
...
...
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