【发布时间】:2018-03-29 07:41:36
【问题描述】:
我想把一些线条画成虚线。我怎样才能做到这一点? 我尝试以 2 种不同的方式使用线条样式并得到错误
#### approach 1
for x, m in x_list:
sns.distplot(x, hist=False, label=m, linestyle='--')
#### approach 2
for x, m in x_list:
sns.distplot(x, hist=False, label=m, kde_kws={'linestyle':'--'})
TypeError: distplot() got an unexpected keyword argument 'linestyle'
【问题讨论】:
标签: python matplotlib jupyter-notebook seaborn