write plot1
write plot2
write plot3
write plot4