plot 4 legend now exporting correctly