plot コマンド上にマスク定義がある場合、その後の同じコマンド上の image 描画、pm3d 曲面が、キーワード mask を追加することでマスクされます。 マスクを定義していなければ、そのキーワードは無視します。
以下の例は、点の集合を囲む凸包を使い、ある pm3d 曲面に対応する領域をマ スクする方法を示します。
set table $HULL plot $POINTS using 1:2 convexhull unset table
set view map
set multiplot layout 1,2
splot $POINTS using 1:2:3 with pm3d, \
$POINTS using 1:2:(0) nogrid with points
splot $HULL using 1:2:(0) with mask, \
$POINTS using 1:2:3 mask with pm3d
unset multiplot
内にあります。
ここには示しませんが、一つのマスクが複数の多角形領域を含み得ます。
竹野茂治@新潟工科大学