0

I have pandas pairplot picture, built by the command

sns.pairplot(df,hue='TARGET CLASS',diag_kind='hist' )

Before upgrade

After package upgrade diagonal histogram changed to

After upgrade

I tried keyword argument stacked=True using python command

sns.pairplot(df,hue='TARGET CLASS',diag_kind='hist',**diag_kws=dict(stacked=True)**)

but it did not have any influence on the picture I get. Appreciate any advice on how I can bring the picture to its initial look?

BigBen
  • 46,229
  • 7
  • 24
  • 40
  • 3
    A review of the [documentation](https://seaborn.pydata.org/generated/seaborn.histplot.html) shows `multiple='stack'` – Trenton McKinney Feb 23 '23 at 14:47
  • sns.pairplot(df,hue='TARGET CLASS',diag_kind='hist',multiple="stack") gives error: TypeError: pairplot() got an unexpected keyword argument 'multiple' sns.pairplot(df,hue='TARGET CLASS',diag_kind='hist',diag_kws=dict(multiple="stack")) gives: AttributeError: 'Rectangle' object has no property 'multiple' – Leonid Tepliakov Feb 23 '23 at 15:44
  • https://stackoverflow.com/a/73725574/7758804 Verify your seaborn version – Trenton McKinney Feb 23 '23 at 16:07

1 Answers1

0

Wow! Now have the problem resolved! I restored the history how it appeared. It happened not after direct seaborn package upgrade, but after I installed pydot

conda install pydot

I am not sure, but may be it by dependency also upgraded seaborn. Now I updated seaborn with conda.

conda update seaborn

And it resolved the problem. diag_kws=dict(multiple="stack") option gave expected result. enter image description here