|
SOLUTIONS
|
MATHEMATICA 内置符号
RegionPlot[pred, {x, xmin, xmax}, {y, ymin, ymax}]
画图来显示 pred 是 True 的区域.
更多信息更多信息
- pred 可表述为任何不等式的逻辑组合.
- RegionPlot 绘图区域可以包含不连续部分.
- 默认情况下,每一部分内部显示为灰色,并使用黑线作为边界.
- RegionPlot 和 Graphics 具有相同的选项,另外有以下附加和不同的选项:
-
AspectRatio 1 高宽比 BoundaryStyle Automatic 每个区域边界的样式 ColorFunction Automatic 如何对每个区域内部着色 ColorFunctionScaling True 是否调整 ColorFunction 的参数 EvaluationMonitor None 在每个计算函数中的计算表达式 Frame True 是否画边框 MaxRecursion Automatic 允许的的最大递归分割数 Mesh None 画多少网格线 MeshFunctions {#1&,#2&} 画什么样的网格线 MeshShading None 如何在网格线间画阴影 MeshStyle Automatic 网格线的样式 Method Automatic 完善区域的方法 PerformanceGoal $PerformanceGoal 需要优化的性能 PlotLegends None 区域图例 PlotPoints Automatic 初始采样点 PlotRange Full 图形的范围值 PlotRangeClipping True 是否在图形范围内裁剪 PlotRangePadding Automatic 填充多少范围值 PlotStyle Automatic 区域样式的图形指令 TextureCoordinateFunction Automatic 如何决定纹理坐标 TextureCoordinateScaling True 是否缩放参数为 TextureCoordinateFunction WorkingPrecision MachinePrecision 内部计算的精度 - PlotLegends 的典型设置包括:
-
None 不使用图例 Automatic 自动确定图例 "Expressions" 将
,
, ... 作为图例标签使用{lbl1,lbl2,...} 将
,
, ... 作为图例标签使用Placed[lspec,...] 指定图例位置 - RegionPlot 初步在由 PlotPoints 指定的等距样本点组成的网格上计算 pred. 然后它使用一个自适应算法来细分,细分次数最多为 MaxRecursion,以试图找到 pred 是 True 的所有区域边界.
- 您应该可以注意到,由于只采用了有限个采样点,RegionPlot 可能漏掉 pred 是 True 的区域. 为了检查这个结果,应该尽力增加 PlotPoints 和 MaxRecursion 的设置.
- 使用 PlotRange->Full 的默认设置, RegionPlot 将明确包括
到
和
到
对 x 和 y 的所有区域. - 使用 Mesh->All, RegionPlot 将精确划分网格线来显示用来找出细分的每一区域.
- RegionPlot 通常能找出主要测量的区域;它不能找出只有线或点的区域.
- 提供给 MeshFunctions 和 RegionFunction 函数的参数是 x、y. 默认情况下,为 ColorFunction 和 TextureCoordinateFunction 提供这些参数的缩放版本.
- RegionPlot 返回 Graphics[GraphicsComplex[data]].
版本 6 的新功能 | 版本 9 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





