Update the grid-per-axis tests to use the PixelSampler utility class. Add a test to verify setting line widths from 1 to 9 pixels wide. Tidy and fix a number of formatting errors.