在使用matplotlib.mlab.normpdf时出现错误:
matplotlib.mlab.normpdf
matplotlib.mlab has no attribute normpdf
matplotlib.mlab
normpdf
mlab中normpdf属性已经移除了,报错信息:
module 'matplotlib.mlab' has no attribute 'normpdf'
from scipy.stats import norm
使用norm.pdf代替mormpdf
norm.pdf
mormpdf