-
Notifications
You must be signed in to change notification settings - Fork 33
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
Line handling of nans #67
Comments
Yes I see, I encountered this issue with the HistogramGraphic previously and fixed it in #28 We could just implement it in the base |
Seems like a good one for start with for sure :) Might take me a little while to get to it (weekend likely). |
thinking about this more, for lines we don't want to show it as zeros though becuase this will actually move the position of the line vertex, maybe we can set the alpha value for the color at those points to zero |
Yes the zero strategy won’t work for lines. Either need to interpolate or make the relevant bits disappear. For the latter, could split into multiple lines or the alpha trick sound good. Having to track multiple separate line objects would probably be a pain! |
splitting into multiple lines would be a major pain, definitely try the alpha method! |
I made a PR in |
fixed in pygfx/pygfx#540 |
When data contains nans rendering doesn't work for line objects. Images work (i.e., the nans just show up as zeros).
Compare to following which shows up fine (line renders except the nans which are just blank -- obviously could be handled differently this is just one option):
In practice this comes up frequently as the caiman coordinates have nans in them fairly often (right now I just filter out those nan-containing rows).
The text was updated successfully, but these errors were encountered: