Black Lives Matter. Please consider donating to Black Girls Code today.

Categories not sorted in scatter matrix


Whenever I execute the code below, the categories corresponding to these axis are not sorted accordingly.

import as px
df =
fig = px.scatter_matrix(df)
fig.update_layout(xaxis5=dict(type='category',categoryorder='category ascending'),
                yaxis5=dict(type='category',categoryorder='category descending'))

Please see Categorical ordering in scatter matrix