Refactor Grid plot.