Gnuplot没有从八度音中画出来

时间:2013-11-16 03:02:23

标签: gnuplot octave

我正在从Kubuntu Saucy(13.10)存储库中运行默认Gnuplot和octave,当我尝试从八度音阶绘制时,我没有绘图,只有Gnuplot样板,然后我可以输入Gnuplot命令,或者完全与控制-d。这是我得到的输出:

naught101@naught101-chronos:~$ octave
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

octave:1> plot([1,2,3])
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.

        G N U P L O T
        Version 4.6 patchlevel 3    last modified 2013-04-12 
        Build System: Linux x86_64

        Copyright (C) 1986-1993, 1998, 2004, 2007-2013
        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)/x正确显示情节)。如果我点击Ctrl-D,我就明白了:

error: compare_versions: version numbers must be a single row
error: called from:
error:   /usr/share/octave/3.6.4/m/miscellaneous/compare_versions.m at line 85, column 5
error:   /usr/share/octave/3.6.4/m/plot/private/__gnuplot_has_feature__.m at line 50, column 23
error:   /usr/share/octave/3.6.4/m/plot/__gnuplot_drawnow__.m at line 200, column 11
error:   /usr/share/octave/3.6.4/m/plot/__gnuplot_drawnow__.m at line 84, column 16
octave:2> 

我试过了

sudo aptitude purge liboctave1 octave octave-common octave-ga octave-plot gnuplot gnuplot-qt

并重新安装,没有帮助。

1 个答案:

答案 0 :(得分:0)

我在Windows上遇到了同样的问题。 在compare_versions.m中,我查看了v1和v2,发现v1为空。 v1实际上是由__gnuplot_version__ ()中的__gnuplot_has_feature__.m命令生成的。在位于__gnuplot_version__ ()的函数__gnuplot_version__.m中,获取gnuplot版本的命令行是:

[status, output] = system (sprintf ("\"%s\" --version", gnuplot_binary ()));

在Windows上应该是:

[status, output] = system (sprintf ("\"%s\" show version", gnuplot_binary ()));

似乎更好。 我不想改变八度音阶的源代码,但在这种情况下,它似乎是唯一的解决方案。