I have plot like the below generated from 3 plots something like the below.
plot_line = df_line.pivot(index="days_to_delivery", columns="year", values="value") .hvplot(height=height, width=width) .opts(invert_xaxis=True) plot_dot = df_dot.pivot(index="days_to_delivery", columns="year", values="value").hvplot(height=height, width=width, size=100, kind="scatter") .opts(invert_xaxis=True) plot_dotted = df.dotted.hvplot(x="days_to_delivery", y="value", by=["year", "source"]).opts( opts.Curve(line_dash="dotted") plot = plot_line * plot_dot * plot_dotted *
Now I would like to programmatically deselect all series except the series 2020-2022. Similar to what I have done manually below.
How do I do that?. Any pointers to documentation or examples would be helpful. I’ve not been able to find it.
I would also like to control the colors. How do I do that? For example all
2021 series or dots should have the color green. How do I do that? Can I do it after I’ve created the overlay or should I do it before?