Skip to content

Allow customizing inner box plot marker colors in violinplot - #4035

Open
Armubakh wants to merge 1 commit into
mwaskom:masterfrom
Armubakh:fix-violin-inner-marker-colors
Open

Armubakh wants to merge 1 commit into
mwaskom:masterfrom
Armubakh:fix-violin-inner-marker-colors

Conversation

@Armubakh

Copy link
Copy Markdown

Fixes #3597

Summary

In sns.violinplot(..., inner="box"), markeredgecolor and markerfacecolor were hardcoded to "w" after unpacking **inner_kws, which prevented custom marker colors from taking effect.

Changes

  • Set default "markeredgecolor": "w" and "markerfacecolor": "w" before **inner_kws so that user-provided values in inner_kws take precedence.
  • Added test coverage in tests/test_categorical.py verifying that custom markerfacecolor and markeredgecolor passed via inner_kws are respected.

Removed duplicate 'color' key in dot_kws dictionary.
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.

Update seaborn.categorical.py to allow adjusting the marker colors of the box plot within a violin plots

1 participant