如何调整同一图的两个系列之间的间距

How to adjust the spacing between two series of the same plot

为了构建这条曲线,我执行了以下操作:

MyPlot.plot(MyMatrix[MyMatrix["Date"]<=today]['Date'],MyMatrix[MyMatrix["Date"]<=today]['Y'], color="red")
MyPlot.plot(MyMatrix[MyMatrix["Date"]>=today]['Date'],MyMatrix[MyMatrix["Date"]>=today]['Y'], color="blue")

有没有办法在它之间没有空格 space?

我有什么:

我想要的东西:

这是我的想法:将红线的最后一个元素添加到蓝线:

#take the maximum x value for MyMatrix["Date"]<=todaythe red line
last_x =max(MyMatrix[MyMatrix["Date"]<=today]['Date'])

#plot starting from the last "red" sample
MyPlot.plot(MyMatrix[MyMatrix["Date"]>=last_x]['Date'], 
             MyMatrix[MyMatrix["Date"]>=last_x]['Y'], color="blue")

已编辑