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 · 3 comments
Closed

Slicing removes styling #423

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

Comments

@basnijholt
Copy link
Contributor

@basnijholt basnijholt commented Jan 28, 2016

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

@jlstevens jlstevens commented Jan 28, 2016

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

@jlstevens jlstevens commented Feb 3, 2016

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

@philippjfr philippjfr commented Feb 3, 2016

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.

@philippjfr philippjfr closed this Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants