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

Categories not sorted in scatter matrix

Hi,

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

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

Please see Categorical ordering in scatter matrix