matplotlib怎么画三维散点图
答案:2 悬赏:20 手机版
解决时间 2021-03-18 11:40
- 提问者网友:临风不自傲
- 2021-03-17 19:47
matplotlib怎么画三维散点图
最佳答案
- 五星知识达人网友:七十二街
- 2021-03-17 20:04
public class DasAuto {
public Vehicle createNormalCar(VehicleBuilder builder){
builder.buildVehicle();
builder.buildEngine();
builder.buildWheel();
return builder.getVehicle();
}
public Vehicle createRaceCar(VehicleBuilder builder ){
builder.buildVehicle();
builder.buildEngine();
builder.buildWheel();
builder.buildWheel();
return builder.getVehicle();
}
}
public Vehicle createNormalCar(VehicleBuilder builder){
builder.buildVehicle();
builder.buildEngine();
builder.buildWheel();
return builder.getVehicle();
}
public Vehicle createRaceCar(VehicleBuilder builder ){
builder.buildVehicle();
builder.buildEngine();
builder.buildWheel();
builder.buildWheel();
return builder.getVehicle();
}
}
全部回答
- 1楼网友:杯酒困英雄
- 2021-03-17 20:10
matplotlib实现了大多数matlab的函数,scatter3
去这一页找到你需要的源码下下来改改就行了
#scatter-plots
axes3d.scatter(xs, ys, zs=0, zdir='z', s=20, c='b', *args, **kwargs)
create a scatter plot.
argument description
xs, ys positions of data points.
zs either 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.
zdir which direction to use as z (‘x’, ‘y’ or ‘z’) when plotting a 2d set.
s size in points^2. it is a scalar or an array of the same length as x and y.
c a color. c can be a single color format string, or a sequence of color specifications of length n, or a sequence of n numbers 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.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯