Added plot.detfn() function.