Creating a grid of plots from two input coordinates