
Hi,
Wondering if there’s a way to control the hatch_scale of a custom texture (instantiated using ImageURLTexture as suggested in the docs). Super powerful possibilities with this feature btw ![]()
Minimized example:
from bokeh.models import Rect, ImageURLTexture, ColumnDataSource
from bokeh.plotting import figure,showf = figure()
src = ColumnDataSource(data={‘x’:[1],‘y’:[1],‘w’:[1],‘h’:[1],‘texture’:[‘sand’]})
glyph = Rect(x=‘x’,y=‘y’,width=‘w’,height=‘h’,hatch_extra= {‘sand’:ImageURLTexture(url=‘https://www.myfreetextures.com/wp-content/uploads/2011/08/2011-06-11-09495.jpg’,repetition='repeat’)}
,hatch_pattern=‘texture’
,hatch_scale=0.1 #THIS DOESN’T SEEM DO ANYTHING
)
rend = f.add_glyph(src,glyph)
show(f)
Thank you!
Gaelen

