title: Plotting a simple line between two points in Matplotlib
body: <p>I want to draw a simple line as show in this <a href="https://i.stack.imgur.com/z005s.png" rel="nofollow noreferrer">figure</a>.</p>
  <p>Here is what I tried but failed:</p>
  <pre><code>import matplotlib.pyplot as plt
  x = [1,10,100,1000,10000]
  y = [1,10**(-1),10**(-2),10**(-3),10**(-4)] 
  plt.plot(x, y,'gray',linestyle='--',marker='')
  </code></pre>
  <p>This code gives me very odd output. I need to make it same as in the figure.</p>
  <p>I don't have all data points beside I only have those numbers in figure that I posted above.</p>