repair a bug in plot.compare: it wasn't actually able to operate on functions properly.