Generally, this math falls under the scope of what is commonly called Taxicab Geometry.
I would use taxicab path as a noun to describe the specific paths illustrated in the original question; whereas taxicab geometry would be a term I'd use for the subset of mathematics covering these types of scenarios.