Hi,
I’m trying to use hatch_patterns as watermarks. It works for i.e. vbars, but it might be better if it were used in a band_hatch.
So, this works:
from bokeh.io import output_file, show
from bokeh.plotting import figure
from bokeh.models import ImageURLTexture
import panel as pn
import holoviews as hv
import numpy as np
hv.extension('bokeh')
pn.extension()
p = figure(height=250, width=600)
p.vbar(x=[0],
top=[1],
alpha=0.2,
hatch_extra={ 'mycustom': ImageURLTexture(url='https://miro.medium.com/fit/c/262/262/2*hYgXkcU-IzRzAGrw4kN5lQ.png') },
hatch_pattern = dict(value="mycustom"),hatch_scale=12
)
pn.Column(p)

But this does not:
from bokeh.io import output_file, show
from bokeh.plotting import figure
from bokeh.models import ImageURLTexture
import panel as pn
import holoviews as hv
import numpy as np
hv.extension('bokeh')
pn.extension()
p = figure(height=250, width=600)
p.vbar(x=[0],
top=[1],
alpha=0.2,
# hatch_extra={ 'mycustom': ImageURLTexture(url='https://miro.medium.com/fit/c/262/262/2*hYgXkcU-IzRzAGrw4kN5lQ.png') },
# hatch_pattern = dict(value="mycustom"),hatch_scale=12
)
p.xgrid.band_hatch_extra={ 'mycustom': ImageURLTexture(url='https://miro.medium.com/fit/c/262/262/2*hYgXkcU-IzRzAGrw4kN5lQ.png') }
p.xgrid.band_hatch_pattern = 'mycustom'
pn.Column(p)

Using '/' as hatch_pattern, you get this:

Am I doing it wrong or do band_hatch_patterns just not support images?

