How to change the fill pattern of an added shape?

fig = go.Figure(
    data=go.Scatter(x=[y_l[1], y_u[1]], y=[y_l[2], y_u[2]],
                   mode='markers',
                   marker={
                       'size': 8,
                       'symbol': 'x'
                   }),
    layout={
        'title': '$f_2$ vs $$f_3'
    }
)
fig.add_shape({
    'type':'rect', 
    'x0': y_l[1], 'x1': y_u[1], 
    'y0': y_l[2], 'y1': y_u[2], 
}, line={
    'width': 1
}, fillcolor='blue', opacity=.2)
fig.show()

I simply want to change the fill pattern of the rectangle I added. Tried below before:

marker={'marker_pattern_shape'='.'}

Hey @kofgokhan ,

Welcome to the community.

I think you can’t use patterns/hatching with shapes. According to docs:

β€œβ€

Bar charts, histograms, polar bar charts and area charts have large markers or areas which support not only a fill color, but also an optional pattern (also known as β€œhatching” or β€œtexture”).

https://plotly.com/python/pattern-hatching-texture/