问题描述
我想为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 (将#修改为@)