Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【gnuplot5】multiplotで全体のtitleを付ける方法

set term png
set output "blog1.png"
set multiplot layout 1,2
set title "Plot 1"
plot sin(x) w l lw 2 lc 1
set title "Plot 2"
plot cos(x) w l lw 2 lc 2
とすると、

これでは全体のtitleではなくて、それぞれの図のtitleになってしまう・・・


■ 参考サイト : gnuplot demo script: layout.dem

ここを見ると解決方法が載ってた

set term png
set output "blog1.png"
set multiplot layout 1,2 title "Total title" font ",14"
plot sin(x) w l lw 2 lc 1
plot cos(x) w l lw 2 lc 2
これで

文字のフォントをいじって少し文字サイズを大きくした方が見やすそう


ランキング参加中です

↓クリックしていただけると嬉しいです〜