add generating several plots into one file function