我正在尝试弄清楚如何设置y名称以匹配与其对应的条形图的颜色。因此,每个出版商的名称都与其旁边的栏具有相同的颜色,例如PS2将是粉色、3DS绿色等等。sns.barplot(x=gbyplat,y=gbyplat.index, palette='husl')plt.xlabel('Number of titles published'
我在matplotlib中创建了子图,但并不是所有的xticks和yticks都被显示出来。我已经尝试了一切,从设置xlim和ylim,链式图形大小等。Scatter plot with Upper Triangle Markers") axes1.set_yticks) #Doing this still doesnot get the expected output print(axes1