refactor plot1

refactor