python画图matplot.pylot

1 python画图matplot.pylot_第1张图片
2 np.linspace()的用法,
转载https://blog.csdn.net/Asher117/article/details/87855493
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)
start:返回样本数据开始点
stop:返回样本数据结束点
num:生成的样本数据量,默认为50
endpoint:True则包含stop;False则不包含stop
retstep:If True, return (samples, step), where step is the spacing between samples.(即如果 为True则结果会给出数据间隔)
dtype:输出数组类型
axis:0(默认)或-1

np.linspace(2.0, 3.0, num=5)
array([ 2. , 2.25, 2.5 , 2.75, 3. ])
3 报错The ‘normed’ kwarg was deprecated in Matplotlib 2.1 and will be removed in 3.1. Use ‘density’ instead. alternative="‘density’", removal=“3.1”)
“normed”kwarg在matplotlib2.1中被废弃,并将在3.1中删除,使用‘density’代替,移除3.1??
python画图matplot.pylot_第2张图片
4!python画图matplot.pylot_第3张图片
5 python画图matplot.pylot_第4张图片

你可能感兴趣的:(python画图matplot.pylot)