plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

PX: xaxis labels/ticklabels are missing from the last columns in charts using facet_col_wrap

Open michaelbabyn opened this issue 5 years ago • 1 comments

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()

Screenshot from 2020-10-30 17-38-31

michaelbabyn avatar Oct 30 '20 21:10 michaelbabyn

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

nicolaskruchten avatar Mar 30 '21 22:03 nicolaskruchten