在matplotlib&seaborn中使用wes anderson调色板
wes的Python项目详细描述
**W**ES**A**nderson**M**AT**P**Lot**L**IB调色板
========================================================================================================================================[构建状态](https://travis-ci.org/ljwolf/wampl.svg?branch=master)(https://travis ci.org/ljwolf/wampl)
这是另一个[wes anderson paletes](http://wesandersonpaletes.tumblr.com/)
实现。目前,如果您设置了默认调色板,它只会将
默认颜色周期修改为博客提供的颜色周期。我不做任何分类或使用推断,不像jiffyclub的奇妙的
[palettable](https://github.com/jiffyclub/palettable)。
查看[演示笔记本](http://nbviewer.ipython.org/github/ljwolf/wampl/blob/master/demo.ipynb)以获取更多信息。
用法
----
它就像:
``````
导入wes
wes.set_palette('rushmore')
````
然后您未来的绘图将使用“rushmore”调色板。如果要重置调色板,请使用
```
import matplotlib
matplotlib.rcdefaults()
````
否则,可以使用“wes.available()”显示所有可用的调色板,也可以使用“wes.plot廑调色板(*args)”相互绘制两个调色板。
您也可以将其与
[seaborn]一起使用(http://stanford.edu/~mwaskom/software/seaborn/)。只需记住在**导入seaborn后设置
调色板**,因为seaborn会覆盖matplotlib的
[`rcdefaults`](http://matplotlib.org/users/customization.html)
license
--
cc-by-sa
========================================================================================================================================[构建状态](https://travis-ci.org/ljwolf/wampl.svg?branch=master)(https://travis ci.org/ljwolf/wampl)
这是另一个[wes anderson paletes](http://wesandersonpaletes.tumblr.com/)
实现。目前,如果您设置了默认调色板,它只会将
默认颜色周期修改为博客提供的颜色周期。我不做任何分类或使用推断,不像jiffyclub的奇妙的
[palettable](https://github.com/jiffyclub/palettable)。
查看[演示笔记本](http://nbviewer.ipython.org/github/ljwolf/wampl/blob/master/demo.ipynb)以获取更多信息。
用法
----
它就像:
``````
导入wes
wes.set_palette('rushmore')
````
然后您未来的绘图将使用“rushmore”调色板。如果要重置调色板,请使用
```
import matplotlib
matplotlib.rcdefaults()
````
否则,可以使用“wes.available()”显示所有可用的调色板,也可以使用“wes.plot廑调色板(*args)”相互绘制两个调色板。
您也可以将其与
[seaborn]一起使用(http://stanford.edu/~mwaskom/software/seaborn/)。只需记住在**导入seaborn后设置
调色板**,因为seaborn会覆盖matplotlib的
[`rcdefaults`](http://matplotlib.org/users/customization.html)
license
--
cc-by-sa