I was following this: Create random shape/contour using matplotlib
and I wanted to fill the generated shapes with certain values. Problem is I am only given the x & y coordinates of the shape outline. How can I populate the space in the random shape with values?
Let's say i have a function f(x,y) that takes in x and y values to give an output z. I want to populate the space in the shape with the value z.
Example of shape: