set y name "I (mA)" set x name "V (Volts)" # open data file, plot points open "635.raw" read columns x y close draw symbol bullet # plot the theoretical curve \xmin="1.664" \xmax="1.946" \xinc="(1.946-1.664)/100" \function = "8.3357*(exp((x-1.633)/0.25786)-1.0)" create columns from function draw curve # create all labels and draw them draw x axis at bottom draw y axis at left draw title "635 nm"