gnuplot v4.6 パッチレベル 6 を使用して、時系列データの積み上げグラフを作成しています。コマンドの後のステートメントでsprintf()関数を使用しようとすると、gnuplot は次のように報告します。plottitle
"stacked.plot", line 81: undefined function: columnheader
この記事https://newspaint.wordpress.com/2013/09/11/creating-a-filled-stack-graph-in-gnuplot/の後にプロットをモデル化しました。
データは次のようになります。
epoch read_count write_count
1450760479 4933.0 3598.0
1450760779 8049.0 2161.0
1450761079 6099.0 2458.0
1450761379 3670.0 2349.0
1450761679 4130.0 2336.0
1450761979 2415.0 3222.0
そして、私のプロットコマンドは次のようになります:
j=3
plot \
for [i=2:j:1] \
TARGET using 1:(sum [col=i:j] column(col)) \
title sprintf("%s - %s",HOST,columnheader(i)) \
with filledcurves x1
関数を削除する以外に何もしなければsprintf()、gnuplot は問題なくタスクを完了します。
j=3
plot \
for [i=2:j:1] \
TARGET using 1:(sum [col=i:j] column(col)) \
title columnheader(i) \
with filledcurves x1
ここで私が間違っていることを理解してくれる人はいますか?