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

Colors of clippings in 3d scatter plots do not match original colors #384

Open
nvaytet opened this issue Oct 28, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@nvaytet
Copy link
Member

nvaytet commented Oct 28, 2024

Example:

import plopp as pp
import scipp as sc

a = pp.data.scatter(1000)
b = a.copy()
b.coords['x'] += sc.scalar(60, unit='m')
pp.scatter3d({'a': a, 'b': b})

And then make a spatial clip in Y using the clip3d tool under the figure, the green and red opaque clipping should be blue and orange instead, respectively.
Screenshot at 2024-10-28 14-14-59

This is because the clippings are added as new data on the figure, and they automatically get given an incremented artist number, which cycles through the colors.

We don't see this when using cbar=True because all artists are using the same colormapper.

@nvaytet nvaytet added the bug Something isn't working label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant