plot (min(5 * mod(x, 1), 1) + floor(x)) from x=-5 to 5