This is mesh refinement.
Notice how the picture got better and better the more squares we took.
We approximated the function on each block - a finite element approximation.
We get a better approximation when we use small finite elements.
As the number of blocks increases, the picture approaches that of a continuous function.