In the post Use Mathematica to plot the flow of an ODE with discontinuity, the following ODE with discontinuous coefficient was solved
T = 1;
Y = ParametricNDSolveValue[{X'[t] == Boole[X[t] > 0], X[0] == x}, X, {t, 0, T}, {x}];
Show[
Table[
ParametricPlot[{Y[x][t], t}, {t, 0, T}],
{x, -1, 1, 0.1}
],
PlotRange -> All,
AxesLabel -> {"x", "t"}
]
I also wish to plot an additional family of solutions displayed in green in the picture below.
How can a plot just like the one below (but possibly with the t axis being the vertical one) be done starting from the code above?
Also, is it possible to have the "first" (x=t) and the "last" (x=0) of the green lines displayed in a different color (for example, blue instead of green)?