Gnuplot:Box和Whisker Plot - 未定义的变量:使用

时间:2014-06-13 19:05:53

标签: gnuplot boxplot

我正在尝试使用gnuplot创建Box和Whisker图,以输出到乳胶文档中。我一直有以下错误:

  

“test.gp”,第10行:未定义的变量:使用

我的代码如下:

set terminal latex
set output "test.tex"
set style data boxplot
set style fill solid 0.25 border -1
set style boxplot outliers pointtype 7

set datafile separator ","
set xrange[0:6] 
set yrange[0.000:1.000] 
plot "test.csv" using 1:3:2:6:5:xticlabels(7) with candlesticks notitle whiskerbars, using 1:4:4:4:4 with candlesticks lt -1 notitle

这是我正在使用的CSV文件:

  

1,0.381768,0.386109,0.423836,0.381768,0.42965, “0.3”,   2,0.400131,0.446271,0.47671,0.400131,0.481733, “0.4”,   3,0.442295,0.443961,0.512071,0.442295,0.58654, “0.5”,   4,0.464072,0.502773,0.516437,0.464072,0.589175, “0.6”,   5,0.460358,0.468294,0.479633,0.460358,0.562291, “0.7”,

是否有人能够帮助我弄清楚出了什么问题

1 个答案:

答案 0 :(得分:2)

在你的情节命令中,你错过了第二个'',试试这个:

plot "test.csv" using 1:3:2:6:5:xticlabels(7) with candlesticks notitle whiskerbars, '' using 1:4:4:4:4 with candlesticks lt -1 notitle