0
Ich möchte den Maßstab der x-Achse in Matplotlib in Python ändern. Ich verwende folgenden Code.wie x-Achse in Matplotlib ändern
df.iloc[:,5:9].plot(kind="density",subplots=True,layout=(2,2),sharex=False)
möchte ich verschiedene X-Achse Maßstab für alle X-Achse haben. Was ich versuchte, ist folgende
fig=plt.figure(figsize=(15,15))
ax1=fig.add_subplot(2,2,1)
ax2=fig.add_subplot(2,2,2)
ax2=fig.add_subplot(2,2,3)
ax2=fig.add_subplot(2,2,4)
ax1.set_xticks(np.arrange(1,5000,500))
ax2.set_xticks(np.arrange(1,5000,500))
ax3.set_xticks(np.arrange(1,5000,500))
ax4.set_xticks(np.arrange(1,5000,500))
Aber wenn ich das laufe, bekomme ich leere Zahl.