如何解决`seaborn``catplot` AttributeError:'Line2D'对象没有属性'markers'
我想为seaborn
catplot
放入标记符号,但出现以下错误。
AttributeError: 'Line2D' object has no property 'markers'
整个代码为here。
markers1 = {'Demand': '>','Hardcoal': "s",'Solar': '<','Wind_Onshore' : '.','Wind_Offshore' : ',','Lit_Ion': '-','PSH':'#'}
# {"Lunch": "s","Dinner": "X"}
sns.set_palette(sns.color_palette(hue1))
ax = sns.catplot(x="intensities",y="values",data=df,s=10,size=5,hue='Technologie',palette=sns.color_palette(["#ADD8E6","#414141","#FFA500","#fff340","#00b8f2","#a19595","#f23333","#2397fc"]))
ax.set_xticklabels(rotation = 45)
ax.axes[0][0].axhline(y = 0,ls='--',color='blue',markers = markers1,linewidth=2,alpha=.7)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。