I’m trying to use Matplotlib to generate a histogram of some measurements:
import matplotlib.pyplot as pyplot
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1,)
n, bins, patches = ax.hist(measurements, bins=50, range=(graph_minimum, graph_maximum), histtype=‘bar’)
for patch in patches:
However, the x-tick-labels doesn’t seem to be working:
Instead of appearing on the bottom underneath each bar, it’s rendered as a single line of numbers at the bottom left - which is also truncated.
Also, the plot title doesn’t seem to appear in my ouputed PNG.
Any ideas as to what’s going on?