set terminal png #出力をpngファイルに指定 set output # #重ね書き(1回目はplot,2回目以降はreplot,output指定は最後のreplotの前で) a=10 plot a*sin(x) b=20 replot b*cos(x) set output "fig_test6.png" replot tan(x) #