Add function for plotting grid dependence