reset set terminal windows unset mouse set xlabel "時間[sec]" set xrange [-10:110] set xtics 10 set ylabel "位置[mm]" set format y "%3.0f" set yrange [-10:60] set ytics 5 set y2label "荷重[N]" set format y2 "%3.0f" set y2range [-100:600] set y2tics 100 set key below set grid plot "data.CSV" using ($1):($2) '%lf,%lf,%lf,%lf,%lf,%lf' title "位置指令" with lines,\ "" using ($1):($3) '%lf,%lf,%lf,%lf,%lf,%lf' title "位置" with lines,\ "" using ($1):($4) '%lf,%lf,%lf,%lf,%lf,%lf' axis x1y2 title "荷重指令" with lines,\ "" using ($1):($5) '%lf,%lf,%lf,%lf,%lf,%lf' axis x1y2 title "荷重" with lines set output #pause -1