title: Use Line2D to plot line in matplotlib
body: <p>I have the data:</p>
  <pre><code>x = [10,24,23,23,3]
  y = [12,2,3,4,2]
  </code></pre>
  <p>I want to plot it using <a href="http://matplotlib.org/api/lines_api.html#module-matplotlib.lines" rel="nofollow noreferrer"><code>matplotlib.lines.Line2D(xdata, ydata)</code></a>. I tried:</p>
  <pre><code>import matplotlib.lines
  matplotlib.lines.Line2D(x, y)
  </code></pre>
  <p>But how do I show the line?</p>