// Plots data with smoothing and averaging. data .5,2,3,1,5,3,6,2,4,3 graph width=6,height=4,equalscales plot lineweight=1 // normal for i=0 to 9 read y plot x=i,y = y next restore plot color=(0,255,0),average=0,smooth=8 for i=0 to 9 read y plot x=i,y = y // smooth next restore plot color=(255,128,0),average=10,smooth=0 for i=0 to 9 read y plot x=i,y = y // averaged next restore plot color=(255,0,0),lineweight=3,average=10,smooth=8 for i=0 to 9 read y plot x=i,y = y // smoothed and averaged next // legend normal$ = "Normal" text color=(0,0,0),h=55,v=30,size=18,string=normal$ smooth$ = "Smoothed" text color=(0,255,0),h=55,v=25,size=18,string=smooth$ average$ = "Averaged" text color=(255,128,0),h=55,v=20,size=18,string=average$ smooth_average$ = "Smoothed and Averaged" text color=(255,0,0),h=55,v=15,size=18,string=smooth_average$