question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

swarmplot doesn't recognize `hue` when either the `x` or `y` parameter is omitted

See original GitHub issue

Similar to the example for swarmplot, I would expect the following to color points by the “sex” column:

tips = sns.load_dataset("tips")
ax = sns.swarmplot(y="total_bill", hue="sex", data=tips)

But all points are the same color.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mwaskomcommented, Jun 8, 2016

No, it doesn’t, sorry.

1reaction
sverchkovcommented, Sep 27, 2017

@mwaskom even though you don’t consider it to be a bug, would you consider a pull request to fix this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

swarmplot doesn't recognize hue when either the x or y ...
But I get an error if I try to remove x='Title' from my parameters. ax = sns.swarmplot(data=data, x='Title', y='score', s= ...
Read more >
swarmplot doesn't recognize hue when either the x or y ...
Coding example for the question swarmplot doesn't recognize hue when either the x or y parameter is omitted-Pandas,Python.
Read more >
seaborn.histplot — seaborn 0.12.1 documentation - PyData |
Variables that specify positions on the x and y axes. huevector or key in data. Semantic variable that is mapped to determine the...
Read more >
categorical.py
def __init__(self, x, y, hue, data, order, hue_order, jitter, split, orient, ... violins using a ``hue`` variable, this parameter determines whether the ...
Read more >
Data Visualization with Seaborn - Yulei's Sandbox
Create a box plot with subgroups and omit the outliers sns.catplot(x="internet",y="G3", data=student_data, kind='box', hue="location", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found