scatterplot crashes or produces unexpected results when {hue
,style
}_order
do not contain all hue
/style
values
#3601
Labels
Milestone
bug description: scatterplot plots hollow points when
hue_order
is a strict subset ofhue
values within dataframe and crashes whenstyle_order
is a strict subset ofstyle
values with in dataframe (i.e., the dataframe containshue
orstyle
values not present inhue_order
/style_order
). Was able to reproduce in sns versions 0.13.0, 0.12.0, and 0.11.0expected behavior: scatterplot would should plot the subset of data with values specified in
hue_order
andstyle_order
, like current behavior oflineplot
,kdeplot
, etc.related issues: none obvious, #3575 has different stack trace and does not occur with 0.12.x versions of seaborn
if wanted, I'd be happy to look into contributing a fix
scatterplot
: plots hollow points whenset(hue_order) < set(df[hue])
scatterplot
: crashes whenset(style_order) < set(df[style])
for comparison, lineplot, kdeplot, and lmplot have a more expected behavior
lineplot
: works as expected withset(style_order) < set(df[style])
andset(hue_order) < set(df[hue])
kdeplot
: works as expected whenset(hue_order) < set(df[hue])
lmplot
: works as expected whenset(hue_order) < set(df[hue])
system information
seaborn v0.13.0, I was also able to reproduce on v0.12.0 and v0.11.0
The text was updated successfully, but these errors were encountered: