Added leg angle plotting function