<Difference between mgrid function and meshgrid function>
A function similar to mgrid is the meshgrid function.
The difference is that mgrid can only create an array with equal intervals by deciding the start point and end point, but meshgrid can create an array with arbitrary intervals.
Instead, mgrid is simple to write.
It is also important to note that the definitions of the X-axis and Y-axis are different as follows.