Displaying hatches in plotly figure

I’ve problem displaying hatches on the figure in streamlit. Code works just fine in Jupyter Notebook, but for some reason streamlit doesn’t show hatches only corresponding colors. Maybe it somehow related to plot.js or rendering issues? Has anybody faced it?

fig.add_trace(go.Scatter(x=df_lit[df_lit.columns.values[j]], y=depth,
                                         fill='tozerox',
                                         mode='lines',
                                         line=dict(color="black", width=0.5),
                                         fillcolor=df_lith_codes.color.iloc[j],
                                         fillpattern=dict(shape=df_lith_codes.hatch.iloc[j],
                                                          size=float(df_lith_codes.s.iloc[j]),
                                                          solidity=float(df_lith_codes.solidity.iloc[j]))

This is desired look:

image

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.