[英]is there a way to change the color of seaborn violin_plot
答案是使用 seaborn 的pallete
的一个简单参数,称为 palette。
以下是代码:
import seaborn as sns
df = sns.load_dataset('iris')
sns.violinplot(x = df['species'], y = df['sepal_length'], palette = ['green', 'blue', 'yellow'])
和 BAM。 完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.