title: How to plot a histogram using Matplotlib in Python with a list of data?
body: <p>How do I plot a histogram using <a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html" rel="noreferrer"><code>matplotlib.pyplot.hist</code></a>?</p>
  <p>I have a list of y-values that correspond to bar height, and a list of x-value strings.</p>
  <p>Related: <a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.bar.html" rel="noreferrer"><code>matplotlib.pyplot.bar</code></a>.</p>