How to make an ellipse-shaped MeshGrid using NumPy

2. Explanation

r = np.linspace(0, 1, 100)
theta = np.linspace(0, 2*np.pi, 100)
r, theta = np.meshgrid(r, theta)
When graphing functions, we are used to Cartesian Coordinates which will create a rectangular mesh.
r= stretch_mesh(r, theta)
X = r * np.sin(theta)
Y = r * np.cos(theta)

3. Improvements

4. Conclusions

Logician, Debater, Developer, and Mathematician