折线图:factorplot

代码如下:

import seaborn as sns
sns.set(style="ticks")
exercise = sns.load_dataset("exercise")
g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise)

参数kind:point默认,bar柱形图,count频次,box箱体,violin提琴,strip散点,swarm分散点
出图效果
在这里插入图片描述

这个函数好像要取消了
新的函数:
catplot

出图效果可以查看下面的结果:
https://blog.csdn.net/acbattle/article/details/86490450

发布了46 篇原创文章 · 获赞 0 · 访问量 832

猜你喜欢

转载自blog.csdn.net/github_38148039/article/details/103910274