Using `seaborn` in `python` to generate a bunch of `displot`s and publishing them as html or docx, there is a bug with ordered categorical data. The published plot doesn't present the categorical data in its order. I assume this is happening as there is a conversion of the variable to string when serialising the plots for publication. Note that I put the code in a chunk in .qmd file.

I end up adding a separate function to generate the plots and save them on disk, then call them in the .qmd file.
2022-03-30T23:20:44Z
Rasoul82
closed
plot using an ordered categorical variable does not work
https://github.com/quarto-dev/quarto-cli/issues/487