Matplotlib 三维图像 API

线图(Line plots)

Axes3D.plot(xs, ys, *args, **kwargs)
参数描述
xs,ys一维数组
zsz value(s), either one for all points or one for each point.
zdirWhich direction to use as z (‘x’, ‘y’ or ‘z’) when plotting a 2D set.

点图(scatter)

Axes3D.scatter(xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=True, *args, **kwargs)
参数描述
xs,ysx,y的坐标
zsEither an array of the same length as?xs?and?ys?or a single value to place all points in the same plane. Default is 0.
zdirWhich direction to use as z (‘x’, ‘y’ or ‘z’) when plotting a 2D set.
sSize in points^2. It is a scalar or an array of the same length as?x?and?y.
cA color.?c?can be a single color format string, or a sequence of color specifications of length?N, or a sequence of?Nnumbers to be mapped to colors using the?cmap?and?norm?specified via kwargs (see below). Note that?c?should not be a single numeric RGB or RGBA sequence because that is indistinguishable from an array of values to be colormapped.?c?can be a 2-D array in which the rows are RGB or RGBA, however, including the case of a single row to specify the same color for all points.
depthshadeWhether or not to shade the scatter markers to give the appearance of depth. Default is?True.

线框图(Wireframe)

Axes3D.plot_wireframe(X, Y, Z, *args, **kwargs)
参数描述
X,Y,Z二维数组
rcount, ccountint,Maximum number of samples used in each direction.
rstride, cstrideint,Downsampling stride in each direction.

平面图(surface)

Axes3D.plot_surface(X, Y, Z, *args, **kwargs)
参数描述
X, Y, Z二维数组
rcount, ccountint,Maximum number of samples used in each direction.
rstride, cstrideint,Downsampling stride in each direction.
colorColor of the surface patches.
cmapColormap of the surface patches.
facecolorsColors of each individual patch.
normNormalization for the colormap.
vmin, vmaxBounds for the normalization.
shadeWhether to shade the face colors.

Tri-Surface

Contour

Filled contour

Polygon

Bar

Quiver

参考文献:
https://matplotlib.org/tutorials/toolkits/mplot3d.html#sphx-glr-tutorials-toolkits-mplot3d-py
http://blog.csdn.net/liuxiao214/article/details/78975792

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值