以下の例は、4 つのマークを定義しています。それぞれ背景色で塗り潰す形状 で、デフォルトで点種として利用可能な形状を補うものとして利用できます。 2 つのマークは座標の配列で定義され、残りの 2 つはパラメータ定義です。
FILLSTROKE = 3 # 線と塗り潰し属性の両方を持つことを指示
array Square = [{-1,-1}, { 1,-1}, { 1, 1}, {-1, 1}, {-1,-1}]
array Triangle = [{0,1.2}, {1.04,-0.6}, {-1.04,-0.6}, {0,1.2}]
set mark 1 Square using 2:3:(FILLSTROKE) fc bgnd title "square"
set mark 2 Triangle using 2:3:(FILLSTROKE) fc bgnd title "triangle"
set angle degrees
set mark 3 [0:360:10] '+' using (sin($1)):(cos($1)):(FILLSTROKE) \
title "circle" fc bgnd
set mark 4 [0:360:72] '+' using (sin($1)):(cos($1)):(FILLSTROKE) \
title "pentagon" fc bgnd
unset angle
set title "Custom point shapes defined as marks"
plot for [M=1:4] -sin(x/M) with linesmarks marktype M
竹野茂治@新潟工科大学