add plot3 legend as well as plot4