How do you plot a graph where $y$ increases in short bursts and not linearly? I am wondering if it's possible to plot this sort of graph with one equation.


Note: the application of what I am doing is for video animation, but I
  am just asking for the mathematical explanation; software has nothing
  to do with this.

For context, $y$-axis is rotation in degrees, and $x$-axis is time in seconds. The item rotates 30 degrees every half second. I wonder if it's possible to plot a graph more like the red line, where the rotation ($y$) will accelerate and decelerate to almost a stop at every 30 degrees.
Is there a name for a graph like this? I don't think I would call it an oscillation or a saw-tooth or something.

You could make each segment a quadratic: quadratic functions passing through $(0,0)$ and $(1,m)$ are of the form $f(x)=mx+ax(x-1)$ (assuming the $x$ steps are $1$). You want $a>0$ to get that shape for a given segment. Then you can extend it to "follow the line" by defining $g(x)=\lfloor x \rfloor + f(x-\lfloor x \rfloor)$.
