How to bring back stacked histogram on seaborn pairplot after package upgrade?

85 Views Asked by At

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?

1

There are 1 best solutions below

0
Leonid Tepliakov On

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