sed 1d Deaths.txt > tempfile1# mv tempfile1 Deaths.txtgnuplot -persist -e "set terminal canvas;set xlabel 'x' font 'sans,15';
set ylabel 'y' fontis near the pump located in 12.6
我通过在Mac上用Gnuplot绘制了一打的图。如果我重新运行ruby脚本,那么带有绘图的打开窗口的数量会加倍。如果我可以在预览中打开的PDF中输出所有这些绘图,那么该文件将在每次重新运行后自动更新,并且我不需要费心关闭众多窗口。目前,我只能使用每个PDF文件的一个绘图来实现此目的: Gnuplot::Plot.new(gp) do |plot|
plot