Following is the GNUPLOT script to plot the data and to perform the Stretched exponential decay curve fitting with time-series data. The stretched exponential function f β ( t ) = e − t β {\displaystyle f_{\beta }(t)=e^{-t^{\beta }}} also called the Kohlrausch–Williams–Watts (KWW) function . gnuplot << EOF reset set terminal pngcairo background "#ffffff" enhanced font "Times-New-Roman-Bold,10" fontscale 1.0 size 500, 500 set key on b c inside horizontal set output 'Data.png' set title "Stretched exponential curve" set xlabel "Time" rotate parallel set ylabel "AU" rotate parallel set style line 1 lt 1 dt 1 pi 0 ps 1 # lt = color