p2d and plot.mpl improvemints for 2d plots