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??
在这里插入图片描述
4!在这里插入图片描述
5 在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值