Try plotting several step functions and filling the space between the first function and the axis. Unwanted vertical lines appear. Making things worse, these vertical lines are colored in the color of the first function.
Could any expert help me remove all vertical lines?
Plot[{UnitStep[t - 0.75] + 0.1, 0.5 + UnitStep[t - 0.5],
1 + UnitStep[t - 0.25]}, {t, 0, 1}, Filling -> {1 -> Axis},
FillingStyle -> Opacity[1]]
HeavisideTheta
,SquareWave
andPiecewise
. $\endgroup$