Plot[{Floor[x+1]+Floor[x-1]},{x,-3,3}]