kernel 2d plotting function