title: Plotting two lists of different length matplotlib against same x value
body: <p>I have two <code>numpy.ndarrays</code>, <code>bcmonthly</code> and <code>dailyavg</code>.</p>
  
  <pre><code>bcmonthly has a length of 12 and shape of (12,)
  
  dailyavg has a length of 364 and shape of (364,)
  </code></pre>
  
  <p><code>bcmonthy</code> is the monthly average and <code>dailyavg</code> is the daily average. I want to plot the two variables against the x-axis of 12 months. </p>
  
  <p>Plotting <code>bcmonthly</code> has no issue because its shape is 12. However when I plot <code>dailyavg</code> simultaneously I get this error:</p>
  
  <pre><code>ValueError: x and y must have same first dimension, but have shapes (12,) and (364,)
  </code></pre>
  
  <p>Below is my code:</p>
  
  <pre><code>fig = plt.figure()  
  ax1=fig.add_subplot(111)
  ax1.plot(months,bcmonthly,'r') #months is a list months=['jan','feb',..etc]
  ax2 = ax1.twinx()
  ax2.plot(months, dailyavg)   
  plt.show()
  </code></pre>