我想在Ubuntu中开始使用gnuplot。我已经成功安装了软件,但是当我尝试绘制正弦函数时,我收到一条错误消息。我不知道如何解决这个问题,然后获得我的正弦函数图。
turbulence@turbulence-LIFEBOOK-AH531:~$ gnuplot> plot sin(x)
bash: syntax error near unexpected token `('
答案 0 :(得分:1)
你必须首先启动gnuplot(输入gnuplot并按回车键),然后当你进入命令时(在你的情况下plot sin(x)
)。这是您应该在终端上看到的内容:
~$ gnuplot
G N U P L O T
Version 4.6 patchlevel 0 last modified 2012-03-04
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2012
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'wxt'
gnuplot> plot sin(x)