I'm trying to plot a histogram with a logarithmic x axis. The code I'm currently using is as follows
plt.hist(data, bins=10 ** np.linspace(0, 1, 2, 3), normed=1)
plt.xscale("log")
However, the x axis doesn't actually plot correctly! It just goes from 1 to 100. Ideally I'd like to have tick marks for 1, 10, 100, and 1000. Any ideas?