Mathematica基础——RegionPlot的用法(1)

 时间:2026-04-22 07:38:41

1、        RegionPlot[不等式,{x,xmin,xmax},{y,ymin,ymax}——作出 “不等式”代表的区域.

        举个例子,作出不等式x^2 + y^3 < 2&&-2<x,y<2所代表的区域:

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2}]

Mathematica基础——RegionPlot的用法(1)

2、        指定区域的颜色:

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2},PlotStyle->Green]

Mathematica基础——RegionPlot的用法(1)

3、        改变区域边界的颜色:

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2},BoundaryStyle ->Red,PlotStyle->Green]

Mathematica基础——RegionPlot的用法(1)

4、        给图像加上“标签”:

RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2}, Epilog -> Text["x^2+y^3<2", {0, 0}, {- 1, 1}]]

        Epilog,百度翻译的结果是“结语,尾声,收场白”。

Mathematica基础——RegionPlot的用法(1)

5、        画出不等式组代表的区域:

RegionPlot[x^2 + y^3 < 2 && x + y < 1, {x, -2, 2}, {y, -2, 2}]

RegionPlot[x^2 + y^3 < 2 && x + y > 1, {x, -2, 2}, {y, -2, 2}]

Mathematica基础——RegionPlot的用法(1)

Mathematica基础——RegionPlot的用法(1)

6、        画出sinx*siny>0.2代表的区域:

RegionPlot[Sin[x] Sin[y] >0.2, {x, -10, 10}, {y, -10, 10}, BoundaryStyle -> Dashed, PlotStyle -> Red]

Mathematica基础——RegionPlot的用法(1)

7、        给不同区域添加图例:

RegionPlot[{x^6 < y^3 + 1, y^6 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}, PlotLegends -> "Expressions"]

Mathematica基础——RegionPlot的用法(1)

  • Matlab制作视频并转换成gif动态图的两种方法
  • MATLAB R2015b怎么设置百分率为100%
  • matlab find用法
  • matlab随机森林工具箱安装详细指南-终极篇
  • MATLAB创建信息提示对话框和询问对话框的方法
  • 热门搜索
    怎么追狮子座女生 面膜怎么做 声卡坏了怎么修复 防沉迷身份证号大全 天龙八部星宿怎么样 小学生画画大全 暗器大全 孙二娘简介 毕业论文致谢怎么写 上饶师范学院怎么样