Plot[Floor[Sin[x]+Cos[x]], {x,0,2*Pi}]