fixing the stem so that it always sits on top of the graphs