Fixed minor logic flaw in 2d plots.