Contour plot generation (small glitch fix)