I am not able to get nicer spaces between the xticks with the following code:
import matplotlib.pyplot as plt
coverages = [random.randint(1,10)*2] * 100
contig_names = [‘AAB0008r’] * len(coverages)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.yaxis.grid(True, linestyle=’-’, which=‘major’, color=‘grey’,
ind = range(len(coverages))
rects = ax.bar(ind, coverages, width=0.2, align=‘center’, color=‘thistle’)
#function to auto-rotate the x axis labels
How to get more space between the xticks so they do not look like overlapped anymore?
Thank you in advance.