Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay thanks. I'm not sure why it gets added as an item in the legend though? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why wouldn't it? The legend annotates the mapping variables, and you have a size mapping variable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minimum working example:
Result:
I'm not entirely sure what's going on here, and it's possible that it's an error on my part. There seems to be many different types of behaviour depending on the usage of
hue
,size
, ands
:sns.scatterplot(..., size=1, ...)
(item added to legend)sns.scatterplot(..., hue='hue', size=1, ...)
(item added to legend)sns.scatterplot(..., hue='hue', s=1, ...)
(no extra legend item)sns.scatterplot(..., hue='hue', ...)
(no extra legend item)I'd expect that adding
size=1
would not add an item1
to the legend. Not sure if this is a bug or if I'm using the interface wrong though.Beta Was this translation helpful? Give feedback.
All reactions