如何改变seaborn boxplot粗线和离群值的颜色?

时间:2018-11-04 15:21:45

标签: python data-visualization seaborn

enter image description here

更改了jupyter笔记本主题颜色后,我发现很难识别像这样的绘图信息。...是否可以将boxplot线和离群值点设置为白色,以便可以看到离群值...

1 个答案:

答案 0 :(得分:1)

如果您想一一完成,请参考下面的链接。 plt.boxplot(y1,boxprops = dict(linestyle ='-',linewidth = 3,color ='darkgoldenrod'),whiskerprops = dict(color ='black',linewidth = 5.0),capprops = dict(color ='黑色',线宽= 5.0)) 箱形线的boxprops和晶须线的whiskerprops,

https://matplotlib.org/tutorials/introductory/customizing.html?highlight=whiskerprops