Double bar plot matplotlib
<p>I would like to have a double bar plot with <code>matplotlib</code>. This is my code:</p>

<pre><code>width = 0.55   
ax2.set_xlim(0,len(partiteIndici)+width)
plt.ylim([0,100])
rects1 = ax2.bar(partiteIndici, distanze, width,align='center', color='blue', label='4-3-3 Modello')
rects2 = ax2.bar(partiteIndici, distanze2, width,align='center', color='red', label='Squadra X')
plt.xticks(index + width, partite)
plt.legend()
plt.tight_layout()
plt.show()
</code></pre>

<p>But this is what I have:
<a href="https://i.stack.imgur.com/mgykw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mgykw.png" alt="enter image description here"></a></p>

<p>I would like to have blue bars next to red bars, not overlapped. How can I get this working?</p>

<p>And why do I have the markers on the x bar shifted respect to bars?</p>