title: Removing gaps between data on a Plotly graph
body: <p>I was trying to make a graph plotting time series data on stock prices. However markets are only open 9:30-16:00 but the graph automatically plots times where the market isn't open. This leads to there being large lines on the graph between data points, this should be more apparent in the picture that I've attached. If anybody could help resolve this issue I'd appreciate it.</p>
  <pre><code>import pandas as pd
  import datetime as dt
  import yfinance as yf
  import plotly.graph_objects as go
  
  #Initial data &amp; get dataframe 
  start = dt.date(2022,3,1)
  end = dt.date(2022,3,7)
  ticker = 'SPY'
  df = yf.download(ticker,start,end,progress=False,interval='1m')
  
  #Make Graph
  fig = go.Figure()
  fig.add_trace(go.Scatter(
      x=df.index,
      y=df['Adj Close'],
      mode='lines'))
  fig.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Rx9Bn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rx9Bn.png" alt="enter image description here" /></a></p>