title: How can I plot two different spaced time series on one same plot in Python
body: <p>I have two different spaced time series that I want to plot on one same graph.</p>
  
  <p>Both of them are series between 12:30:00~1:25:00 but their time sequence are different: one is 5 seconds and the other is about 10.3 seconds. The type of both series is "pandas.core.series.Series". The type of the time index is string and made from strftime.
  For example,
  Series A would be:</p>
  
  <pre><code>12:30:05    0.176786
  12:30:15    0.176786
  12:30:26    0.176786
  ...
  13:22:26    0.002395
  13:22:37    0.002395
  13:22:47    0.001574
  </code></pre>
  
  <p>and Series B would be:</p>
  
  <pre><code>12:30:05    0.140277
  12:30:10    0.140277
  12:30:15    0.140277
  ...
  13:24:20    0.000642
  13:24:25    0.000642
  13:24:30    0.000454
  </code></pre>
  
  <p>I have tried to plot both of the series on one same plot by:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  A.plot()
  B.plot()
  plt.gcf().autofmt_xdate()
  plt.show()
  </code></pre>
  
  <p>and it works like this:</p>
  
  <p><img src="https://i.stack.imgur.com/NqwnX.png" alt="enter image description here"></p>
  
  <p>It is obvious that the blue lines in the first graph vanishes around 12:55:05 because series A has only half x points of B's and plot() only arrange the plot based on the order of x-axis, not the time interval.</p>
  
  <p>It will be quite clear if I plot series A alone:</p>
  
  <p><img src="https://i.stack.imgur.com/BunJs.png" alt="enter image description here"></p>
  
  <p>What I want is to make the two series shown in one same plot and arranged based on the true time interval. Ideally, the plot should be similarly as:</p>
  
  <p><img src="https://i.stack.imgur.com/MDJ2C.png" alt="enter image description here"></p>
  
  <p>I hope I've made my point clear. If anything confusing, please let me know. </p>