-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Allow ability to define style cycles for Draw tools #3612
Conversation
Looks great! Does it need to be |
It could just be styles I suppose, that is somewhat redundant since you can just set the style in the usual way but may be cleaner regardless. |
@jbednar @jlstevens Let me know which you prefer, I'd be happy with accepting both lists (as cycles) and scalar values, and then call it simply |
I'd vote for |
I also vote for keeping the API as consistent as possible. Why can't |
That's not consistent with the way cycles behave in HoloViews, styles cycle in an overlay but not within a single Polygons/Paths element.
I'm not following what your suggesting here, that's what the |
Ah, that's the key issue here. Worth brainstorming if there is a way more general than this approach to achieve within-Element cycling. |
That can now be done via |
I'm going to go ahead and rename it to styles and support scalar values. Respecting cycles within an element would be highly inconsistent so I vote against that. |
62db0b1
to
4d11138
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR allows adding style cycles to the PolyDraw stream (but this could be expanded to the other draw streams). As an example here we cycle over the fill_color and line_width of the drawn polygons: