【发布时间】:2013-11-16 03:02:22
【问题描述】:
我正在运行来自 Kubuntu Saucy (13.10) 存储库的默认 Gnuplot 和 octave,当我尝试从 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
然后重新安装,没有帮助。
【问题讨论】:
-
我不知道它是否会对您有所帮助,但较新版本的 Octave 可以访问 OpenGL。在让 gnuplot 与 Octave 一起工作时,我遇到了很多问题。如果您在 Octave 控制台中调用: graphics_toolkit ("fltk"); Octave 将使用 FLTK/OpenGL... 而不再使用 Gnuplot 的 prb...
-
@PierrOz:如果我在 kubuntu 上这样做,当我尝试绘图时会出现段错误。是否可能需要安装其他软件包才能使其正常工作?
-
很抱歉回答迟了。我实际上不知道其他包。对我来说,它在 MAC OS X 10.7 上运行良好。当我用谷歌搜索这个问题时,看起来你不是唯一一个面临它的人,但我还没有看到任何解决方法
-
呃,我是个白痴。我的 PATH 中有一个旧的自编译 gnuplot 二进制文件...删除了它,一切都很好。感谢您尝试@PierrOz。 :(