34.2 ウォッチラベル (watch labels)

デフォルトではラベルは、対象 "watch mouse" に対して常に生成します。他 の対象に対しても、コマンド set style watchpoint labels を使うか、ま たは plot コマンドの watchpoint の対象の一部としてラベルを指定すること でラベルをオンにできます。

デフォルトのラベル文字列は "x : y" で、x, y は対象点の座標、その書式化 は対応する軸に対する現在の設定を使用します。

例:


    set y2tics format "%.2f°"
    set style watchpoint labels point pt 6
    plot FOO axes x1y2 watch mouse

各 watch の対象に対して、文字列定数か、または文字列を返す関数を通して カスタマイズした文字列を与えることができます。

例:


    set style data lines
    plot FOO watch y=50 label "50" watch y=100 label "100"
    f(x,y) = 2*x - y      # f(x,y) = 0 は斜線を定義
    plot $CONTOURS using 1:2:3 watch f(x,y) = 0 label sprintf("%.2f",z)

各 watchpoint ラベルは、テキストボックス内に置きます。以下参照: set style textbox (116.87.14)

竹野茂治@新潟工科大学
2025-02-26