def ContourSet(img): med_img = medfilt(img,kernel_size=11) cs = plt.contour(med_img, np.arange(0.1,2,0.1), origin='lower') return cs