Changed plot3 as it missed legend