title: Plotly: How to plot Horizontal line Between "2 Points" where points on x axis are Months
body: <p>Is there a way to control the starting and ending points of horizontal and vertical lines in <code>plotly</code>?</p>
  <pre><code>import plotly.graph_objects as go
          
  fig = go.Figure(data=go.Scatter())
  fig.add_vline(x=1, line_width=2, line_dash=&quot;dash&quot;, line_color=&quot;green&quot;)
  fig.add_hline(y=2, line_width=2, line_dash=&quot;dash&quot;, line_color=&quot;red&quot;)
  fig.show()
  </code></pre>
  <p>Code above will plot lines but on whole screen</p>
  <p>I want to do something like:</p>
  <pre><code>import matplotlib.pyplot as plt
  fig, ax = plt.subplots(figsize = (10,7))
  
  ax.hlines(y=2, xmin='July', xmax='Aug', linewidth=2, color='red', linestyles = 'dotted')
  ax.axvline(x = 1,color = 'green', linestyle = 'dotted', linewidth = 2)
  </code></pre>