|
SOLUTIONS
|
MATHEMATICA 内置符号
ContourPlot[f, {x, xmin, xmax}, {y, ymin, ymax}]
生成关于
和 y 的函数 f 的等高线图.
ContourPlot[f==g, {x, xmin, xmax}, {y, ymin, ymax}]
绘制
的等高线.
ContourPlot[{f1==g1, f2==g2, ...}, {x, xmin, xmax}, {y, ymin, ymax}]
绘制多个等高线.
更多信息更多信息
- ContourPlot 缺省生成彩色灰度输出,越大的值显示的颜色越浅.
- 在 f 为非实数的位置处,预留空洞,以使等高线图形的背景透过.
- ContourPlot 将变量 x 和 y 视为局部的,实际上等效于 Block.
- ContourPlot 具有属性 HoldAll,仅在对 x 和 y 赋值后计算
和
. - 在某些时候,在对 x 和 y 赋指定值之前,先用 Evaluate 符号式计算
和
更有效. - 在任何 f 计算为 None 的区域,图形留下空白.
- ContourPlot 的选项与 Graphics 相同,并有以下补充和变化:
-
AspectRatio 1 高宽比 BoundaryStyle None 如何绘制 RegionFunction 边界 BoxRatios Automatic 有效的三维边界框比率 ClippingStyle None 如何绘制 PlotRange 剪切的值 ColorFunction Automatic 如何对等高线之间的区域着色 ColorFunctionScaling True 是否对 ColorFunction 的参数进行尺度缩放 ContourLabels Automatic 如何标记等高线的层次 Contours Automatic 要用多少个等高线或哪几个等高线 ContourShading Automatic 如何设置等高线之间的阴影 ContourStyle Automatic 等高线的样式 EvaluationMonitor None 在每次函数计算时所计算的表达式 Exclusions Automatic 排除的
曲线ExclusionsStyle None 如何在排除曲线处绘制 Frame True 是否在图形周围绘制边框 FrameTicks Automatic 边框刻度标记 LightingAngle None 模拟光源的有效角度 MaxRecursion Automatic 允许递归划分的最大数量 Mesh None 每个方向绘制网格线的数量 MeshFunctions {} 如何确定网格线的放置 MeshStyle Automatic 网格线的样式 Method Automatic 用于细化等高线的方法 PerformanceGoal $PerformanceGoal 优化的执行方面 PlotLegends None 等高线区域的图例 PlotPoints Automatic 每个方向上样本点数的初始值 PlotRange {Full,Full,Automatic} 要包括的 f 或其它值的范围 PlotRangeClipping True 是否剪切绘图区域 PlotRangePadding Automatic 值的范围的填充程度 RegionFunction (True&) 如何确定是否包含一个点 WorkingPrecision MachinePrecision 内部计算使用的精度 - PlotLegends 的典型设置包括:
-
None 不使用图例 Automatic 自动确定图例 Placed[lspec,...] 指定图例位置 - 在缺省设置 ContourShading->Automatic 时,阴影用于 ContourPlot[f, ...] 但不用于 ContourPlot[f==g, ...].
- ContourPlot[{f1==g1, f2==g2, ...}, ...] 叠加所有与等式
相关的等高线. - 对于位于等高线层次之间的区域,在确定对区域如何着色的过程中,ContourPlot 首先查看对 ContourShading 的显式设置,然后查看对 ColorFunction 的设置.
- ContourPlot 首先在由 PlotPoints 指定的等间隔样本点的网格上计算 f,然后使用一种自适应算法进行至多 MaxRecursion 次子划分,来产生平滑等高线.
- 应该认识到由于使用的样本点数量有限,ContourPlot 可能会丢失您的函数的部分特征. 在检测您的结果时,可以尝试提高对 PlotPoints 和 MaxRecursion 的设置.
- 对于 PerformanceGoal 的某些设置,其它专有的选项设置可能会被屏蔽.
- MeshFunctions 和 RegionFunction 中提供给函数的自变量是 x、y、f.
- ColorFunction 缺省下提供单个自变量,它由关于每对连续等高层的 f 的平均比例值给出.
- 在缺省设置 Exclusions->Automatic 和 ExclusionsStyle->None 时,ContourPlot 在它检测到的任何曲线不连续处断开取样的连续性. 这个不连续性仅在它跳离特定等高层时立即显示出来.
- 除了 LightingAngle->None 以外的设定, ContourPlot 包括基于高度值的模拟光源,其中高度值由 BoxRatios 决定.
- ContourPlot 返回 Graphics[GraphicsComplex[data]].
版本 1 的新功能 | 版本 9 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




