Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.dat ファイルの最後の行から gnuplot チャートのタイトルを設定しようとしていますが、どうすればよいかわかりません。
私の .dat ファイルは次のようになります。
Column1 Column2 1 0.5 2 1.5 3 2.5 4 3.5 5 4.5 6 5.5 Average is ??????
最後の行のテキストを使用してタイトルを設定するコマンドを知っている人はいますか?
gnuplotはシェルスタイルのバックティック拡張を可能にします。これをunixユーティリティと組み合わせると、tail問題なく機能するはずです。
tail
set title "`tail -1 myfile.dat`" plot 'myfile.dat' u 1:2