title: Difference between plt.draw() and plt.show() in matplotlib
body: <p>I was wondering why some people put a <code>plt.draw()</code> into their code before the <code>plt.show()</code>. For my code, the behavior of the <code>plt.draw()</code> didn't seem to change anything about the output. I did a search on the internet but couldn't find anything useful.</p>
  
  <p>(assuming we imported <code>pyplot</code> as <code>from matplotlib import pyplot as plt</code>)</p>