- Matplotlib 3.0 Cookbook
- Srinivasa Rao Poladi
- 43字
- 2021-08-13 15:16:02
How it works...
We first generate 50 random points using np.random.rand function, which generates numbers between 0 and 1. The tri.Triangulation() function creates triangles automatically, whereas plt.triplot() plots the triangulation plot.
This is how the output plot looks: