I have a matplotlib.bar plot and I can't figure out how to space the bars further apart so the labels are readable.
Here is my code
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def makePlot(self, data, labels, title, fileName):
plt.bar(range(1,len(data)+1), data, align="center")
plt.title(title)
plt.xticks(range(1, len(labels)+1), labels)
plt.savefig(fileName)
plt.clf()
plt.xlim()function to manually set the limits of the x axis.