Open maegul opened 3 years ago
I agree. Another instance of this should be documented in the Patterns, Hatching, Texture in Python.
I couldn't find any examples of simply adding patterns/hatching to a basic bar plot where the entire dataframe was plotted.
Bad Example:
years = np.arange(2000, 2022)
values = np.linspace(10000, 100000, 22)
df = pd.DataFrame({
'Year': years,
'Company 1 Value': values,
'Company 2 Value': values * 3,
}).set_index('Year')
px.bar(df,
pattern_shape='variable',
pattern_shape_sequence=['/', '\\'],
barmode='overlay',
opacity=0.5)
Second this. I only discovered this parameter via a recommendation from ChatGPT while trying to debug a plotly.express function. This definitely needs to go into docs somewhere.
facet_col
is not documented in the docstrings.px.line
is below.plotly.__version__
:4.14.3