【发布时间】:2011-06-10 19:58:08
【问题描述】:
如何使命令行 Mathematica 7 显示图形?
在旧版本的 Mathematica 中,"Plot[x,{x,1,2}]" 会弹出一个 显示带有一些格式选项(线宽, 等 xy 缩放等)。
Mathematica 6 及更高版本不这样做。根据 http://pages.uoregon.edu/noeckel/Mathematica.html大部分图形 代码现在在笔记本界面中,而不是命令行界面中。
上面的页面还建议将"<<JavaGraphicsX" 用作hack(其中X 是我似乎无法在此处输入的反引号字符)。这行得通,
但是图形窗口没有选项,而且,当我调整窗口大小时,
图表不会调整大小。
有没有更好的解决方案?
不幸的是,我尝试加载 Motif.m 失败了:
In[1]:= <<Motif`
StringForm::sfr:
Item 0 requested in "The Motif` graphics package is obsolete, loading
JavaGraphics`." out of range; 0 items available.
Motif::obslt: The Motif` graphics package is obsolete, loading JavaGraphics`.
-- Java graphics initialized --
以下 Debugging a working program on Mathematica 5 with Mathematica 7 我尝试加载 Version5`Graphics 但这并没有真正帮助。
In[1]:= << Version5`Graphics`
-- PostScript to stdout graphics initialized --
In[2]:= Plot[x,{x,1,2}]
%!
%%Creator: Mathematica
%%AspectRatio: .61803
MathPictureStart
/Mabs {
Mgmatrix idtransform
Mtmatrix dtransform
} bind def
[bunch of Postscript crap]
% End of Graphics
MathPictureEnd
Out[2]= -Graphics-
【问题讨论】:
标签: graphics wolfram-mathematica