Fixed the contour plot function to expand parameter ranges.