我有一个seaborn displot,看起来像这样:
我想将一些线条变成虚线。我该如何实现?
我尝试了两种不同的linestyle方法,但都出现了错误。
![enter image description here](https://istack.dev59.com/UsLpS.webp)
#### 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'