这是indexloc提供的服务,不要输入任何密码
Skip to content

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.

2 participants