I want to plot two plots with make_subplots with different times.
How should I do that?
fig = make_subplots(rows=2, cols=1,row_heights=[0.5, 0.5], shared_xaxes=True)
fig.add_trace(go.Candlestick(x=dfpl.index, open=dfpl['open'], high=dfpl['high'], low=dfpl['low'], close=dfpl['close']), row=1, col=1)
fig.add_trace(go.Candlestick(x=dfDiv.index, open=dfDiv['open'], high=dfDiv['high'], low=dfDiv['low'], close=dfDiv['close']), row=2, col=1)
My indexes are different datetimes. The chart is shown as below:

The code posted is a subplot and the attached graph is a single graph with no matching content. I don't know exactly what your data is, but my understanding is that you want to draw a subplot based on two data frames and change the display units for the x-axis time series. you can change the display units with dtick. see here for more information on x-axis time series. If you want to change the range of the x-axis, use range. Specify the start and end dates in a list format. See here for more information.