|
SOLUTIONS
|
MATHEMATICA 内置符号
Graphics
Graphics[primitives, options]
表示一个二维图形.
更多信息更多信息
- Graphics 以 StandardForm 形式显示一个图形. 在 InputForm 中,它显示为一个具体的指令列表.
- 可以使用下列图形基元: »
-
Arrow[{{x1,y1},...}] 箭头 BezierCurve[{pt1,pt2,...}] Bézier 曲线 BSplineCurve[{pt1,pt2,...}] B 样条曲线 Circle[{x,y},r] 圆 Disk[{x,y},r] 填充圆盘 FilledCurve[{seg1,seg2,...}] 填充曲线 Inset[obj,...] 插入对象 GraphicsComplex[pts,prims] 图形对象的复合体 GraphicsGroup[{g1,g2,...}] 选择对象组 JoinedCurve[{seg1,seg2,...}] 连接的曲线段 Line[{{x1,y1},...}] 线 Locator[{x,y}] 动态定位器 Point[{x,y}] 点 Polygon[{{x1,y1},...}] 多边形 Raster[array] 灰色或颜色方块的阵列 Rectangle[{xmin,ymin},{xmax,ymax}] 矩形 Text[expr,{x,y}] 文本 - 可以使用下列图形指令: »
-
AbsoluteDashing[{w1,...}] 指定绝对虚线 AbsolutePointSize[d] 指定绝对点的尺寸 AbsoluteThickness[w] 指定绝对线宽 Arrowheads[specs] 指定箭头 CapForm[type] 线帽指定 CMYKColor[c,m,y,k] 指定颜色 Dashing[{w1,...}] 指定虚线 Directive[g1,g2,...] 复合图形指令 EdgeForm[g] 指定绘制边 FaceForm[g] 指定绘制面 GrayLevel[i] 灰度指定 Hue[h] 色调指定 JoinForm[type] 线连接指定 Opacity[a] 透明度指定 PointSize[d] 点尺寸指定 RGBColor[r,g,b] 颜色指定 Texture[obj] 纹理指定 Thickness[w] 线宽指定 - 可以在任意层使用下面的封装:
-
Annotation[obj,label] 给出一个注解 Button[obj,action] 将 obj 作为一个按钮 Dynamic[obj] 动态更新当前值 EventHandler[obj,...] 一个事件处理器 Hyperlink[obj,URI] 将 obj 制作一个超链接 Mouseover[obj,over] 指定一个鼠标移动形式 PopupWindow[obj,cont] 弹出窗口 StatusArea[obj,label] 在状态栏区域指定一个标签 Style[obj,opts] 指定一个样式 Tooltip[obj,label] 添加一个工具提示 - 可以给出下列选项:
-
AlignmentPoint Center 在图形内对齐的缺省点 AspectRatio Automatic 高与宽的比 Axes False 是否绘制轴 AxesLabel None 坐标轴标签 AxesOrigin Automatic 坐标轴原点 AxesStyle {} 坐标轴样式指定 Background None 绘图的背景色 BaselinePosition Automatic 如何与环绕文本基线对齐 BaseStyle {} 图形的基本样式指定 ContentSelectable Automatic 是否允许进行内容选择 CoordinatesToolOptions Automatic 坐标工具的详细行为 DisplayFunction $DisplayFunction 产生输出的函数 Epilog {} 主图形之后执行的图形指令 FormatType TraditionalForm 文本的缺省样式类型 Frame False 是否在图形周围放置边框 FrameLabel None 边框标签 FrameStyle {} 边框的样式指定 FrameTicks Automatic 边框刻度 FrameTicksStyle {} 边框刻度的样式指定 GridLines None 绘制的网格线 GridLinesStyle {} 网格线的样式指定 ImageMargins 0. 图形周围的边幅 ImagePadding All 为标签等额外填充内容 ImageSize Automatic 图形的绝对尺寸 LabelStyle {} 标签的样式指定 Method Automatic 使用图形方式的细节 PlotLabel None 图形的一个整体标签 PlotRange All 图形值的范围 PlotRangeClipping False 是否在图形范围剪切 PlotRangePadding Automatic 填充图形值范围的程度 PlotRegion Automatic 填充的最后显示区域 PreserveImageOptions Automatic 当显示相同图形的新版本时,是否保存图形选项 Prolog {} 主图形之前执行的图形指令 RotateLabel True 是否在边框上旋转 y 标签 Ticks Automatic 坐标轴标记 TicksStyle {} 坐标轴标记的样式指定 - 可以给出图形的嵌套列表. 诸如 GrayLevel 的指定实际上只保持到直至包含它们的列表末尾.. »
- Style[obj, opts] 可用于将选项或指令 opts 应用到 obj. »
- BaseStyle 的设置可以作为当前样式表中
给出的默认样式的补充. AxesStyle、 LabelStyle 等设置可以作为
、
等给出的默认样式的补充. - Graphics[] 以默认图形尺寸给出一个空图.
版本 1 的新功能 | 版本 8 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





