Closed vsbuffalo closed 5 months ago
FacetGrid
legend relies on functions adding labeled artists to the axes which histplot
does not do. Is there a reason you are not using displot
here?
Thanks! I built up that approach from sns.histpolot
and then added in FaceGrid
after (and had AI generate a generic MRE from my actual code). I was not away that one could get displot
to control the faceting. Thank you.
Here is an MRE:
I can move
hue='method'
over tosns.FacetGrid
and the legend will display, but that changes the bar plot so it is not properly stacked.