title: Type error, and then ValueError: x and y must have same first dimension
body: <p>So I had this:</p>
  
  <pre><code>def graph_data(dateList, countList, name):
  xarray = [0,1,2,3,4,5,6]
  xarray = np.asarray(xarray)
  myticks = dateList
  plt.figure(figsize=(9,5))
  plt.xticks(xarray, myticks)
  plt.plot(xarray, countList, color='r', linewidth='3.0')
  plt.ylabel("Activity")
  plt.xlabel("Date")
  plt.title(name + "'s Activity for the past 7 days")
  plt.savefig("graph.png")
  </code></pre>
  
  <p>Which worked fine, but once I ran it on a different VPS (yes, i've already installed all the dependencies with pip), but then it gave me a type error, stating that in plt.plot, countList needed to be float, so I changed the code to this:</p>
  
  <pre><code>def graph_data(dateList, countList, name):
  for n in countList:
      fixedList = []
      fixedList.append(float(n))
  xarray = [0,1,2,3,4,5,6]
  myticks = dateList
  plt.figure(figsize=(9,5))
  plt.xticks(xarray, myticks)
  plt.plot(xarray, fixedList, color='r', linewidth='3.0')
  plt.ylabel("Activity")
  plt.xlabel("Date")
  plt.title(name + "'s Activity for the past 7 days")
  plt.savefig("graph.png")
  </code></pre>
  
  <p>But then it gave me this error:</p>
  
  <pre><code> "have shapes {} and {}".format(x.shape, y.shape))
   ValueError: x and y must have same first dimension, but have shapes (7,) and (1,)
  </code></pre>
  
  <p>so I added <code>xarray = np.asarray(xarray)</code> and <code>fixedList = np.asarray(fixedList)</code>
  but it still gives me the shape error. What am I doing wrong?</p>