title: Plotting a horizontal line, y = constant in matplotlib
body: <p>I am using the following to plot a horizontal line in matplotlib:</p>
  
  <pre><code>axScatter.axhline(y=0.285987, xmin=-1.5, xmax=0.491, color='black', linestyle=':')
  </code></pre>
  
  <p>However, it is just ever so slightly out:</p>
  
  <p><img src="https://i.stack.imgur.com/aIfgv.png" alt="enter image description here"></p>
  
  <p>I'd rather have a function where y = 0.285987 between the x-range: -1.5 and ~0.72. Does anyone know how to plot a line without using <code>axhline</code>?</p>