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

Also allow Plot.label to control all paired axes #3459

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Sep 1, 2023

Follow on to #3458 which didn't cover Plot.label. While it probably rarely makes sense to use the exact same label in a paired plot, it may be desired to use a consistent formatting function, e.g.:

(
    so.Plot(planets, x="year")
    .pair(y=["mass", "distance"])
    .label(y=str.capitalize)
    .add(so.Dots())
)

@mwaskom mwaskom added this to the v0.13.0 milestone Sep 1, 2023
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #3459 (fa0eeeb) into master (74a8301) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3459   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files          75       75           
  Lines       24449    24453    +4     
=======================================
+ Hits        24041    24045    +4     
  Misses        408      408           
Files Changed Coverage Δ
seaborn/_core/plot.py 98.30% <100.00%> (+<0.01%) ⬆️
tests/_core/test_plot.py 98.82% <100.00%> (+<0.01%) ⬆️

@mwaskom mwaskom merged commit ff446ee into master Sep 1, 2023
12 checks passed
@mwaskom mwaskom deleted the plot/pair_label_control branch September 1, 2023 19:46
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