title: Python plot two lists with different length
body: <p>I have two lists with different prices. The first list is for the years 2008-2018 and the second for the years 2010-2018. How I can plot them under the condition that the years 2008 to 2018 are on the X-axis and the second list starts in 2010?</p>
  
  <p>I have the following as an example of a short code:</p>
  
  <pre><code>from matplotlib import pyplot as plt
  
  Geb_b30 = [11, 10, 12, 14, 16, 19, 17, 14, 18, 17]
  Geb_a30 = [12, 10, 13, 14, 12, 13, 18, 16]
  
  fig, ax = plt.subplots()
  ax.plot(Geb_b30, label='Prices 2008-2018', color='blue')
  ax.plot(Geb_a30, label='Prices 2010-2018', color = 'red')
  legend = ax.legend(loc='center right', fontsize='x-large')
  plt.xlabel('years')
  plt.ylabel('prices')
  plt.title('Comparison of the different prices')
  plt.show()
  </code></pre>