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

Comments

Projects
None yet
3 participants
@basnijholt
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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
You can’t perform that action at this time.