Is there a way to fill Rectangles or other geometry with Hatch Patterns like Bokeh?
See this link for Bokeh:
https://docs.bokeh.org/en/latest/docs/user_guide/styling.html?highlight=hatch
Thanks
Is there a way to fill Rectangles or other geometry with Hatch Patterns like Bokeh?
See this link for Bokeh:
https://docs.bokeh.org/en/latest/docs/user_guide/styling.html?highlight=hatch
Thanks
Mind filing an issue about this to remind me? For now you could try adding the option yourself:
import holoviews as hv
hv.Store.add_style_opts(hv.Polygons, ['hatch_pattern'], 'bokeh')
hv.Polygons([hv.Box(0, 0, 1)]).opts(hatch_pattern='x')
Although it seems like it’s not supported for the Rect glyph so you’d have to fall back to Polygons.
Thanks for your help!
@philippjfr @maximlt Is this supported on the latest holoviews? I looked at the code and could not understand the appending of the hatch_properties with “background”. The above suggestion works but I have to add it after importing holoviews and geoviews.