# drug_dosage_commands.txt # # Usage: # gnuplot < drug_dosage_commands.txt # set term png set output "drug_dosage_plots.png" set xlabel "<--- Hours --->" set ylabel "<--- Concentration (mg/l) --->" set title "Drug level variation over time" set key on set grid set timestamp set style data lines set yrange [0:1100] plot "drug_dosage_data.txt" using 1:2 with lines lw 3, [y=800:800] 0,48 with lines lw 3 lt rgb "green" title "Minimal medicinal level", 1000 with lines lw 3 lt rgb "red" title "Toxic level" quit