I am trying to plot the population of lots of cities using a histogram. There is over 7000 cities and the populations range from around 5000 to 19,000,000. I am unfamiliar with the np.hist command and have tried playing around with it and the bins and with logarithmic scales to create a nice graph but have not been successful. The following is the code I used to obtain this graph but for some reason it seems to be plotting the populations on the x axis, I thought they would have appeared vertically?
plt.hist(pop_usa)
plt.yscale('log')
plt.show()