设置键(图例)坐标不起作用?

Grz*_*nio 7 gnuplot

我想将密钥移动到绘图中间的某个位置,所以我按照教程并使用以下脚本:

set terminal postscript eps enhanced color
set title "Risk of the loan"

set output 'simulation.eps'
set xlabel 'Initial loan value'
#set key height 24
set key 8,0.7

plot 'simulation.txt' using 1:2 title 'Discounted loan value' with lines lw 3,\
     'simulation.txt' using 1:3 title 'VaR' with lines lw 3,\
     'simulation.txt' using 1:4 title 'CVaR' with lines lw 3,\
     'simulation.txt' using 1:5 title 'Probability of default' with lines lw 3
Run Code Online (Sandbox Code Playgroud)

但是,当我运行它时,我得到:

ga1009@ga1009-dell:~$ gnuplot simulation.p

set key 8,0.7
        ^
"simulation.p", line 7: unknown key option
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

vae*_*hen 11

尝试

set key at 8,0.7
        ^^
Run Code Online (Sandbox Code Playgroud)

在这里工作!

  • 在阅读了大量省略"at"的在线示例后,我遇到了同样的问题.谢谢! (2认同)