Fix categorical hue splits with explicit hue order (#3922) #3971

Open
poorvajasathasivam opened 8:14am on August 5, 2026 wants to merge 63 Ξ” into mwaskom/seaborn master from
fix-categorical-hue-order

Pull Request Overview

  • Opened on August 5, 2026
  • Status Open
  • Commit count 1 with first commit August 5, 2026

Total Delta

63 Total Diff Delta

Open Days

Open 38 weekdays

Test Delta

24 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

Fix categorical hue splits with explicit hue order (#3922)

Closes #3922.

Fixes an issue where categorical hue data could be split incorrectly when the pandas categorical dtype order differed from hue_order. In that case, plots such as violinplot could show the right hue labels/colors but draw them with the wrong subset of data.

The fix updates the shared iter_data splitter to match grouping keys by value directly instead of relying on GroupBy.get_group.

Tests added for the low-level splitter and violinplot.

No comments have been left on this PR.