Here you set the appearance of the grid in the profile part of the longitudinal profile drawing. This includes layer name in the drawing, color, text height, whether or not to draw 1m grid and interval of the gridlines.
The function is run from the following locations: