Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dash mark #3074

Merged
merged 3 commits into from
Oct 12, 2022
Merged

Add Dash mark #3074

merged 3 commits into from
Oct 12, 2022

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Oct 11, 2022

This mark doesn't have a direct analogue in the classic interface but it's kind of like a category-specific rug plot:

(
    so.Plot(penguins, "species", "body_mass_g", color="sex")
    .add(so.Dash())
)

One useful application is to denote the central tendency behind a strip or swam plot:

(
    so.Plot(penguins, "species", "body_mass_g", color="sex")
    .add(so.Dots(), so.Dodge(), so.Jitter())
    .add(so.Dash(), so.Agg(), so.Dodge())
)

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Merging #3074 (9f4f244) into master (54cab15) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3074   +/-   ##
=======================================
  Coverage   98.38%   98.39%           
=======================================
  Files          74       74           
  Lines       23648    23715   +67     
=======================================
+ Hits        23267    23334   +67     
  Misses        381      381           
Impacted Files Coverage Δ
seaborn/_marks/line.py 100.00% <100.00%> (ø)
seaborn/objects.py 100.00% <100.00%> (ø)
tests/_marks/test_line.py 100.00% <100.00%> (ø)

@mwaskom mwaskom merged commit 549c326 into master Oct 12, 2022
@mwaskom mwaskom deleted the mark/dash branch October 12, 2022 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant