是gnuplot的新手,但需要紧急使用。这是我使用的以下命令集:
set terminal latex
set output “conflict.tex”
set xtics ("random" 2, "sharing(0%)" 3, "sharing(10%)" 4, "sharing(25%)" 5, “sharing(50%)” 6, “stat” 7)
set ylabel “Conflict Percentage”
set xrange [0:9]
set yrange [0:60]
set xlabel “Traces”
set boxwidth 0.3
set style fill
plot 'D:\Utility Softwares\conflicts.dat' with boxes
Run Code Online (Sandbox Code Playgroud)
之后我得到“格式错误的字符”,不知道为什么
感谢帮助
最近,我在xtics()中转义(“格式错误的字符”)遇到了同样的问题。
这应该工作:
set xtics ("random" 2, "sharing(0\%%)" 1, ...)
Run Code Online (Sandbox Code Playgroud)
帮助我的是查看生成的tex文件。