normpdf专题

module'matplotlib.mlab'has no attribute 'normpdf'

采用mlab中的normpdf生成高斯曲线 但是发现mlab中这个属性已经移除了,报错信息: module 'matplotlib.mlab' has no attribute 'normpdf' 使用norm.pdf 为替代的方式 import matplotlib.mlab as mlabimport matplotlib.pyplot as pltplt.rcParams['fo