plotly.py
plotly.py copied to clipboard
PX: xaxis labels/ticklabels are missing from the last columns in charts using facet_col_wrap
E.g in the below example the number of facets is not divisible by the number of columns and the bottom row isn't filled up but the xaxes in the bottom row are the only ones where the title is included and where showticklabels isn't set to False.
import plotly.express as px
df = px.data.tips()
fig = px.histogram(df, x="total_bill", y="tip", color="sex", facet_col="day", facet_col_wrap=3,
category_orders={"day": ["Thur", "Fri", "Sat", "Sun"], "time": ["Lunch", "Dinner"]})
fig.show()

This is intentional, but we should indeed document how to reliably get them back.