I am trying to plot density plot through Python. So far I am using this code:
for s in data_Pre1.columns:
data_Pre1[s].plot(kind='kde', normed = True)
plt.title("Disk Galaxies", fontsize = 18)
plt.xlabel("$E_i$", fontsize = 18)
plt.ylabel('Number of images', fontsize = 18)
plt.xlim(-1,1)
plt.ylim(0.1,1.0)
plt.legend(fontsize =18)
plt.show()
I have two columns in my datasets. I am getting y-lims from 0-4. But most of the density plots has limits in points like 0.1 to 1.0 in order to shows percentages. I am not sure why I am getting 0-4 and I can interpret it.