-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Styles going missing when slicing NdOverlays #221
Comments
Wait I'm assuming that was a mistake but isn't the call in your example, i.e. |
Yes sorry! Ignore the call (fixed above in an edit) |
Hmm, this is a more general problem to do with inheritance of the |
As I said above this is not actually a bug, it's expected behavior. The question is do we want to change it? You could have avoided this issue altogether if you sliced only the NdOverlay not the Curves themselves, i.e. this |
I see what you mean now and I do think it is fairly confusing behavior. As a result, I think copying the ids across might be a good idea although I'll need time to think through all the possible consequences of this... |
This now works as you expected: traces = hv.NdOverlay({col:hv.Curve(np.random.rand(10,2))(style={'color':col})
for i, col in enumerate(['red', 'green', 'blue']) }, kdims=['Contrast'])
traces[['red', 'green'], :] Closing. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In my work, I am generating an
NdOverlay
where the individual curves are customized by color:The result has the colors I would expect but it seems the color settings are lost if I slice the NdOverlay. For instance, if I do
traces[3.1:,:]
to eliminate the 3% contrast trace, theNdOverlay
seems to revert back to the default color cycle.Edit: Fixed example.
The text was updated successfully, but these errors were encountered: