Added parameter to specify NumberOfSamples for the contour linspace