web-dev-qa-db-ja.com

gnuplotのポイントの色を変更します

このスクリップは仕事です。でも色が変わって見えない

plot '_numXY' using 2:3:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 notitle lc rgb "blue"

青のまたはが見えません。それは黒です。ポイントラインを青色で見たいです。 lc rgb "blue" 動かない?なにが問題ですか?

6
alex

lcオプションの直後に従わない場合、labelsプロットスタイルのpoint設定は無視されます。あなたの場合、あなたは最後にnotitleだけを置く必要があります。

plot '_numXY' using 2:3:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 lc rgb "blue" notitle

デモンストレーションの例として:

set samples 11
set xrange [0:10]
plot '+' using 1:1:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 lc rgb "blue" notitle

4.6.5の結果は次のとおりです。

enter image description here

8
Christoph