fixed display of legends in plot3.png, plot4.png