title: Infinite horizontal line in Bokeh
body: <p>Is there a way to plot an infinite horizontal line with Bokeh? 
  The endpoints of the line should never become visible, no matter how far out the user is zooming. </p>
  
  <p>This is what I've tried so far. It just prints an empty canvas:</p>
  
  <pre><code>import bokeh.plotting as bk
  import numpy as np
  
  p = bk.figure()
  p.line([-np.inf,np.inf], [0,0], legend="y(x) = 0")
  bk.show(p)
  </code></pre>
  
  <p>One way would be to set the endpoints extremely high/low and the figure's x_range and y_range very small in relation to them. </p>
  
  <pre><code>import bokeh.plotting as bk
  import numpy as np
  
  p = bk.figure(x_range=[-10,10])
  p.line([-np.iinfo(np.int64).max, np.iinfo(np.int64).max], [0,0], legend="y(x) = 0")
  bk.show(p)
  </code></pre>
  
  <p>However, I am hoping that somebody has a more elegant solution.</p>
  
  <p><em>Edit: removed outdated solution</em></p>