Skip to content

Boxplot errors when dodge=True without hue #3553

@Asif-Iqbal-Bhatti

Description

@Asif-Iqbal-Bhatti

Hello,

I want to report a bug when using the latest version of Seaborn. I checked with 0.12.2 there was no error.The bug is:
File "/mnt/c/Users//Desktop/Gent_presentation_2023/1_Effect_of_Ti_addition/2-formation_energy/all_Tix_analysis/./boxplot.py", line 287, in
statplot_cols()
File "/mnt/c/Users/
/Desktop/Gent_presentation_2023/1_Effect_of_Ti_addition/2-formation_energy/all_Tix_analysis/./boxplot.py", line 59, in statplot_cols
pp = sns.boxplot(
File "/home/
/miniconda3/lib/python3.10/site-packages/seaborn/categorical.py", line 1619, in boxplot
p.plot_boxes(
File "/home/
/miniconda3/lib/python3.10/site-packages/seaborn/categorical.py", line 637, in plot_boxes
self._dodge(sub_vars, data)
File "/home/
*****/miniconda3/lib/python3.10/site-packages/seaborn/categorical.py", line 391, in _dodge
hue_idx = self._hue_map.levels.index(keys["hue"])
KeyError: 'hue'

Can you check why is that?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions