ploting and saving graphs