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 2 commits into from Jul 25, 2019


Copy link

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"]

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 added the bug label Jul 9, 2019

@philippjfr philippjfr force-pushed the philippjfr/path_legend_fix branch from f7a0712 to 1531bb1 Jul 17, 2019

@philippjfr philippjfr merged commit 22ba51e into master Jul 25, 2019

4 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed
coverage/coveralls Coverage increased (+0.04%) to 87.796%

@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
None yet
1 participant
You can’t perform that action at this time.