Code for 2d plot, and 2d data