Seaborn does not set the default color palette when importing

There are many links that say that Matplotlib's charts would have looked nicer due to the sea palette by simply importing the sea coast, for example

import seaborn as sns

However, when I do this, the colors and formatting still look like normal matlotlib defaults for both the matplotlib plot and the marine life. That is, if the command sns.set()fails to force w70> the default palette to be set.

Why is this happening and how to fix it?

How the maritime castle was installed: This happens in my Ubuntu 14.04, working with Anaconda, although the maritime bridge was installed through pip, since the version of Anaconda in the system was not preinstalled. I tried to set the ship through condafor both environments, py27and py35. Although the installation was successful, the import did not work, so I continued with pip.

Despite the fact that seaborn works fine, both environments are still imported with the same unsatisfactory matplitlib colors by default.

+4
source share
1 answer

You are using marine version 0.8 or later. The change log tells us:

. set() set_style(), set_context() set_palette(). , seaborn.apionly .

. , , , matplotlib, , matplotlib. .

, seaborn.set(),

+5

Source: https://habr.com/ru/post/1687607/


All Articles