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

Slicing removes styling #423

Closed
basnijholt opened this issue Jan 28, 2016 · 4 comments
Closed

Slicing removes styling #423

basnijholt opened this issue Jan 28, 2016 · 4 comments
Assignees
Milestone

Comments

@basnijholt
Copy link
Contributor

plot = (hv.Curve(np.arange(0, 10))(style={'linestyle':'--', 'color':'r'}) 
 * hv.Curve(np.arange(-10, 0))(style={'linestyle':'--', 'color':'b'}))
plot

screen shot 2016-01-28 at 15 09 02

plot[:, -5:5]

screen shot 2016-01-28 at 15 09 05

I'm on latest dev version

@jlstevens
Copy link
Contributor

I've seen this behavior before when the id is not propagated after slicing. Should be an easy fix (I think it was fixed before but may have got lost in the data API refactor).

@philippjfr philippjfr added this to the v1.4.2 milestone Jan 31, 2016
@jlstevens jlstevens self-assigned this Feb 2, 2016
@jlstevens
Copy link
Contributor

I can reproduce this issue and as I expected, the id values are incorrect after slicing. Should be easy to fix.

@philippjfr
Copy link
Member

Fixed in #439. Styling is now always retained when cloning an object which is what's used by most internal operations when creating a new object. Let me know if you run into any issues. Closing now.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants