Im having trouble plotting piecewise continuous functions too. I tried
f[x_]:=Which[ x< 3, 1, 3<=x<5, 2, x>=5, 3]
to plot a step function, but it joined the steps which is wrong. I want there to
What can I do.