To plot the data, with the mean and the standard deviation as error bars.
Save the below code as example.gnuplot
set terminal pdf size 6, 4.5 enhanced font "Times-New-Roman,20"
set output 'out.pdf'
red = "#CC0000"; green = "#4C9900"; blue = "#6A5ACD"; skyblue = "#87CEEB"; violet = "#FF00FF"; brown = "#D2691E";
set xrange [0:*] nowriteback;
set yrange [0.0: 10.0]
set title "Line graph with confidence interval"
set xlabel "X Axis"
set ylabel "Y Axis"
plot "data.dat" using 1:2:3 title "l1" with yerrorlines lw 3 lc rgb red,\
''using 1:4:5 title "l2" with yerrorlines lw 3 lc rgb brown
Create a new file called "data.dat" and give some sample values, such as
X Y Stddev y1 std
1 2 0.5 3 0.25
2 4 0.2 5 0.3
3 3 0.3 4 0.35
4 5 0.1 6 0.3
5 6 0.2 7 0.25
Run the script using the command gnuplot example.gnuplot