seaborn plot doesn't plot on subplot

前端 未结 0 1359
梦毁少年i
梦毁少年i 2021-02-09 01:41

I have this code:

x=range(9)
data=[1,2,3,2,1,2,3,4,5]
fig, axes = plt.subplots(1, 2)
axes[0].scatter(x=x,y=data)
sns.displot(data=data,alpha=0.5,kde=True,ax=axes[         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题