title: Matplotlib Graph Data
body: <p>What i'm trying to do:</p>
  <p>while inside a for loop, append to a list. If a requirement is met in that loop, append to another, then graph it. how do I do this:</p>
  <p>Graphing code:</p>
  <pre><code>style.use(&quot;ggplot&quot;)
  plt.plot(attempts, score)
  plt.show()
  </code></pre>
  <p>When I use two normal lists it doesn't work. I tried numpy arrays but got:</p>
  <pre><code>ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 0 dimension(s)
  </code></pre>
  <p>Using lists like:</p>
  <pre><code>np.append(score, acc, axis=None)
  </code></pre>
  <p>What code will work?</p>