added comment about using parent scoping for function that adds x-axis labels