Skip to content

Two bugs in catplot with kind="swarm" #2835

@mwaskom

Description

@mwaskom
sns.catplot(
    tips, x="day", y="total_bill", col="time",
    height=3, kind="swarm",
)

image

Issues:

  • A palette is mapped to the x variable (catplot probably has some logic to do this to override FacetGrid passing color?
  • The points on the left facet are not swarmed.

Interestingly, the latter issue does not arise when using FacetGrid directly:

sns.FacetGrid(tips, col="time").map(sns.swarmplot, "day", "total_bill")

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions