这个问题是关于matploblib函数的。 (https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.contourf.html)
函数的文档将levels参数描述为
levels : int or array-like, optional
If array-like, draw contour lines at the specified levels. The values must be in increasing order.
我的问题是这些水平的轮廓意味着什么?它们是指x-y平面上点的密度吗
从Wikipedia:
所以如果你有一个函数
f(x,y)
,那么在a
层次上的轮廓就是一条穿过f(x,y) == a
点的线。您可以提供多个级别a1, a2, a3, ...
来获得多条等高线,一个位于f(x,y) == a1
,一个位于f(x,y) == a2
,等等在matplotlib语法中
相关问题 更多 >
编程相关推荐