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

Fixed legends for PathPlot #3809

Merged
merged 2 commits into from Jul 25, 2019
Merged

Fixed legends for PathPlot #3809

merged 2 commits into from Jul 25, 2019

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Jul 9, 2019

Ensures that this generates a legend:

data = {"x": [1,2,3,4,5,6,7,8,9],
"y":   [1,2,3,4,5,6,7,8,9],
"cat": [0,1,2,0,1,2,0,1,2]}

colors = ["#FF0000", "#00FF00", "#0000FF"]
levels=[0,1,2,3]

hv.Path(data, vdims="cat").opts(color="cat", cmap=dict(zip(levels, colors)), line_width=4, show_legend=True)

bokeh_plot - 2019-07-09T144905 785

  • Add unit test

@philippjfr philippjfr force-pushed the philippjfr/path_legend_fix branch from f7a0712 to 1531bb1 Compare Jul 17, 2019
@philippjfr philippjfr merged commit 22ba51e into master Jul 25, 2019
4 checks passed
@philippjfr philippjfr deleted the philippjfr/path_legend_fix branch Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant