set style data line set label "theta = 90 degrees" at 1,0.0300 set label "B = 1.74 T" at 1,0.0290 set label "pos. res. = 150 microns" at 1,0.0280 set label "length of detector = (0.58600 - 0.16895) m" at 1,0.0270 set label "no. of pos. meas. = 23" at 1,0.0260 set label "no. of r. l. = 0.0317" at 1,0.0250 set xrange [0.1:2.0] set yrange [0.00:0.04] set grid plot "cdc_pi.txt" using 2:4 title "pion mass", "cdc_p.txt" using 2:4 title "proton mass"