There is currently no support for hatching in Bokeh. There is a low-level HTML canvas for defining fill patterns, but it is not exposed. Perhaps it could be added some day, so I'd encourage you to file a GH issue for this feature request.
In the mean time, the only immediate avenue I can suggest is a custom extension that subclasses the Rect renderer and adds in a fixed pattern manually.
I won't say it is a trivial task, but if you have some familiarity with javascript/coffeescript it could bd doable. Here is the users guide section on extending bokeh:
I am looking at a workaround now and if that does not work, I will com back to the list with specific questions on subclassing the Rect renderer.
I find that the calling link between the python code and and javascript code was not readily understood by me, someone new to the package.
Thanks,
Jeremy
···
On Oct 1, 2016, at 10:31 PM, Bryan Van de Ven <[email protected]> wrote:
Jeremy,
There is currently no support for hatching in Bokeh. There is a low-level HTML canvas for defining fill patterns, but it is not exposed. Perhaps it could be added some day, so I'd encourage you to file a GH issue for this feature request.
In the mean time, the only immediate avenue I can suggest is a custom extension that subclasses the Rect renderer and adds in a fixed pattern manually.
I won't say it is a trivial task, but if you have some familiarity with javascript/coffeescript it could bd doable. Here is the users guide section on extending bokeh: