Mathematica绘制地势图(ReliefPlot)

2025-04-12 16:16:17

1、给出一个二维数组。

Mathematica绘制地势图(ReliefPlot)

2、用Image把数组转化为图像。

Mathematica绘制地势图(ReliefPlot)

3、由于采样精度低,导致图像很粗糙,所以,需要提高采样精度。

Mathematica绘制地势图(ReliefPlot)

4、用ReliefPlot可以直接把数组转化为地势图。但是要注意,地势图与Image是上下颠倒的。

Mathematica绘制地势图(ReliefPlot)

5、用DataReversed -> True可以把上下颠倒回来。

Mathematica绘制地势图(ReliefPlot)

6、与ReliefPlot相呼应的是ReliefImage,区别是:ReliefPlot接受的参数是数组;ReliefImage接受的参数是图像。

Mathematica绘制地势图(ReliefPlot)
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢