0

I am trying to use matplotlib and seaborn to perform some data vizualisation (heatmap here). But i realized that the matplotlib heatmap doesn't look the same at all whether I import seaborn or not.

I've launched a matplotlib heatmap before importing seaborn:

Without loading seaborn

And the same matrix heatmap after importing seaborn:

After loading seaborn

I therefore have two questions:

  • First why is this happening?
  • Second is there a way to counter this fact?
ysearka
  • 3,805
  • 5
  • 20
  • 41
  • 2
    Use `import seaborn.apionly as sns`, according to this answer: http://stackoverflow.com/questions/25393936/how-can-i-use-seaborn-without-changing-the-matplotlib-defaults – Bart Jun 28 '16 at 13:43
  • Also, as an explanation as to the *why*: https://stanford.edu/~mwaskom/software/seaborn/tutorial/aesthetics.html – SiHa Jun 28 '16 at 13:58
  • Thank you guys, those two answers were exactly what I needed :) (sorry for the duplicate btw) – ysearka Jun 29 '16 at 15:14

0 Answers0