title: How can I add the Line2D object to the figure in matplotlib
body: <pre><code>import matplotlib.pyplot as plt
  from matplotlib.lines import Line2D   
  
  line = plt.Line2D([1], [1])
  plt.show() #it's doing nothing
  </code></pre>