Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lines are only rendered if they contain no NaNs #247

Open
raacampbell opened this issue Mar 4, 2020 · 3 comments
Open

Lines are only rendered if they contain no NaNs #247

raacampbell opened this issue Mar 4, 2020 · 3 comments
Assignees

Comments

@raacampbell
Copy link
Collaborator

raacampbell commented Mar 4, 2020

I think since the recent version of PyQtGraph lines only render if they have no NaNs. I see this by printing to the console the contents of data in lasagna.ingredients.lines.plotIngredient. When there are any NaNs it plots nothing. Seems like this bug: pyqtgraph/pyqtgraph#1057

@raacampbell raacampbell added the bug label Mar 4, 2020
@raacampbell raacampbell self-assigned this Mar 4, 2020
@raacampbell
Copy link
Collaborator Author

Suggests that PyQt5 version 5.13.1 is bad but 5.13.0 is ok (pyqtgraph/pyqtgraph#1011). I see the problem with 5.14.1

@raacampbell
Copy link
Collaborator Author

Confirmed. You can side-step this issue by doing:

pip uninstall pyqt5
pip install pyqt5==5.13.0

@raacampbell
Copy link
Collaborator Author

Modified install files: 9846694 and e2a7a55

erikmansson added a commit to acconeer/acconeer-python-exploration that referenced this issue Mar 16, 2020
Data containing NaNs doesn't render properly with the current versions
of PyQtGraph (0.11.0rc0) and PyQt (5.14.x). This commit adds a function
to work around this which is used in the distance detector.

Related issues:
SainsburyWellcomeCentre/lasagna#247
pyqtgraph/pyqtgraph#1057

Fix taken from here:
pyqtgraph/pyqtgraph#1057 (comment)

Change-Id: Ia57dadc66551c171bd52da6379d4e8524e8a82bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant