plot3.png with legends