I\'m looking to calculate the area within a contour of an unknown function. Values of my function are held within a Numpy array, which when plotted looks like this: