2012-03-17 28 views
6

我想移动的关键,一些位置在小区的中间,所以我也跟着教程,并有以下脚本:设置键(图例)坐标不起作用?

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 

然而,当我运行它,我得到:

[email protected]:~$ gnuplot simulation.p 

set key 8,0.7 
     ^
"simulation.p", line 7: unknown key option 

我在做什么错了?

回答

10

尝试这里

set key at 8,0.7 
     ^^ 

作品!

+0

太棒了!谢谢。 – Grzenio 2012-03-18 21:24:10

+2

在阅读了大量在线示例之后,我忽略了“at”,但遇到同样的问题。谢谢! – 2012-07-21 21:03:39