set legend to be at the bottom of graph. change average stroke style to be thinner and dotted