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 inner="median" option to violin plot #3733

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fdamken
Copy link

@fdamken fdamken commented Jul 22, 2024

Sometime, one does not want to plot the 25% and 75% quantiles but only the median, especially when previously outliers were removed from the data.

I added a new option for the inner keyword of violinplot to accept "median" which in turn only plots the median.

@fdamken fdamken changed the title Add inner=median option to violin plot Add inner="median" option to violin plot Jul 22, 2024
@mwaskom
Copy link
Owner

mwaskom commented Jul 22, 2024

Thanks, but I think I am 👎 on additional options for violinplots — I also don't understand why outlier removal would mean that you don't want to see the full quartiles.

@EwoutH
Copy link
Contributor

EwoutH commented Aug 11, 2024

@fdamken could you maybe provide a few example plots in which this option is useful (preferably comparing to the current plots without inner="median")?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants