4.9 多重描画モード (Multiplots)

多重描画グラフ (multiplot) の仕組みは、複数の plot, splot コマンドの出 力を一つのページ、あるいは一つの画面に結合するのに使います。この仕組み は、gnuplot 6 で大幅に改修されています。バージョン 6.0.5 からは結合さ れた画面のパネル毎に対話型マウスを使うことが可能になり、また既に存在す るコマンド replot か新しいコマンド remultiplot による multiplot 全 体の再描画も可能になっています。多重描画グラフモードは、コマンド set multiplot で開始し、unset multiplot でそれを閉じるまで続きます。


  load $GPVAL_PRE_MULTIPLOT    # 元の描画設定を復帰
  set style fill transparent   # 設定を一つ変更
  load #GPVAL_LAST_MULTIPLOT   # multiplot コマンド列を再実行

[試験段階] 詳細は変更の可能性あり。現時点でいくつかの制限あり。


    $DATA << EOD
    1 2 3
    4 5 6
    EOD
    set multiplot
      plot $DATA using 1:2 with points pt 5
      plot $DATA using 1:3 with points pt 6
    unset multiplot

竹野茂治@新潟工科大学
2026-08-21