matplotlib - seaborn "kde jointplot" 在最新版本 (0.11.0) 中没有颜色映射
问题描述
我seaborn ver. 0.10.1
在我的 jupyter 笔记本上运行。今天早上我升级到最新版本0.11.0
。现在,我的 kde jointplot 没有给出它过去的颜色映射。代码是一样的。只有版本不同。
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib notebook
np.random.seed(1234)
v1 = pd.Series(np.random.normal(0,10,1000), name='v1')
v2 = pd.Series(np.random.normal(60,15,1000), name='v2')
v3 = pd.Series(2*v1 + v2, name='v3')
# set the seaborn style for all the following plots
sns.set_style('white')
sns.jointplot(v1, v3, kind='kde', space=0);
解决方案
推荐阅读
- reactjs - VSCode React JSX 语法高亮显示损坏
- javascript - FlatList在本机反应中返回空白屏幕
- linux-kernel - 树莓派 4 的交叉编译内核
- php - 使用 Guzzle 执行批处理请求
- c - C Mingw“ld.exe:无法打开输出文件cipher.exe:权限被拒绝collect2.exe错误:ld返回1退出状态”
- azure - Azure 自动化访问 VM 与 DevOps Winrm 访问
- typescript - 指定值的类型而不指定对象的键类型
- neo4j - Neo4j中如何统计公共节点的数量 - 查询
- windows - 将 DNS 后缀添加到 Docker Windows 网络
- c# - 评论选择在 Visual Studio 社区 2019 中不起作用