Implement plot1.