更新时间:2023-02-26 18:47:59
解决您在答案中的最后一条评论,假设您有以下阶段变化
Addressing your last comment in your answer, let's say that you have the following changes of phase
changes = [20,35,55]
您可以像这样绘制未连接的部分
you can plot the unconnected parts like this
first = 0
for c in changes:
plt.plot(x[first:c], y[first:c])
first = c+1
plt.plot(x[first:],y[first:])