set title "Some Sample Plots" set ylabel "rad/s" set y2label "I" set y2tics set grid set style line 1 \ linecolor rgb '#0060ad' \ linetype 1 linewidth 3 set style line 2 \ linecolor rgb '#dd181f' \ linetype 2 linewidth 3 \ plot 'data1.dat' using 1:2 title "Angular Speed" with lines linestyle 1 axis x1y1, \ 'data1.dat' using 1:4 title "Current" with lines linestyle 2 axis x1y2 pause -1