Display
Usage
• Display[channel, graphics] 用于把图象或声音以Mathematica PostScript格式输出到指定输出通道中.
• Display[channel, graphics, "format"]以指定格式输出图象或声音.
• Display[channel, expr, "format"] 以指定格式输出盒子,单元或笔记本表达式.
Notes
• 输出通道可以是一个单独的文件或管道,或它们的一个列表.
• Display中的graphics可以是 Graphics, Graphics3D, SurfaceGraphics, ContourGraphics, DensityGraphics或GraphicsArray. • graphics中也可以包括声音. • Display 中的expr可以是单元,笔记本或由ToBoxes[expr]生成的任意盒框. • 任何用于Export的特定图形格式都可以被使用. • 可能出现的可选项:
| "\!\(\*StyleBox[\"\\\"CharacterEncoding\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) " | 文本中使用的字符编码 | | "\!\(\*StyleBox[\"\\\"ImageOffset\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"{0,\\\"\", \"MR\"]\) \!\(\*StyleBox[\"\\\"0}\\\"\", \"MR\"]\) " | 视区中图象的偏移量 | | "\!\(\*StyleBox[\"\\\"ImageResolution\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) " | 以点每英寸对图象的分解 | | "\!\(\*StyleBox[\"\\\"ImageRotated\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"False\\\"\", \"MR\"]\) " | 是否将图象旋转到水平模式 | | "\!\(\*StyleBox[\"\\\"ImageSize\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) " | 以打印点为单位的绝对图象大小
|
• $DisplayFunction 通常根据Display来给出. • 如果channel中指定的文件或管道没有被打开,Display 会使用OpenWrite 来打开它们,然后在它完成时则关闭这些特别的文件和通道. • 许多情况下,Display通过 MathLink来调用Mathematica 笔记本前端.如果该前端不存在, Display的某些功能可能无法使用. • 显示文本时, Display可能使用为Mathematica 特别安装的字体.
Further Examples
This stores the graph generated by Plot as a GIF in the file graph.gif. Evaluate the cell to see the graphic. The file graph.gif will be written to your default directory; you may wish to remove it when you are done.
In[1]:=
|
This is the default for the Plot option DisplayFunction.
In[2]:=
|
Out[2]=
|
The value of $DisplayFunction is given in terms of Display.
In[3]:=
|
Out[3]=
|
See the Further Examples for DisplayFunction.
|