I am trying to plot three timeseries datasets with different start date on the same x-axis, similar to this question How to plot timeseries with different start date on the same x axis. Except that my x-axis has dates instead of days.
My data frame is structured as:
Date ColA Label
01/01/2019 1.0 Training
02/01/2019 1.0 Training
...
14/09/2020 2.0 Test1
..
06/01/2021 4.0 Test2
...
I have defined each time series as:
train = df.loc['01/01/2019':'05/08/2020', 'ColA']
test1 = df.loc['14/09/2020':'20/12/2020', 'ColA']
test2 = df.loc['06/01/2021':'18/03/2021', 'ColA']
This is how individual time series plot:

But when I try to plot them on the same x-axis, it doesn't plot in sequence of dates
I am hoping to produce something like this (from MS Excel):

Any help would be great!
Thank you