您必须分别使用loc和scale参数作为平均值和标准偏差。
<强> PDF:强>
from scipy.stats import norm
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 20, 100)
mean = 10
std = 1
plt.plot(x, norm.pdf(x, loc=mean, scale=std))
plt.show()
或 CDF :
plt.plot(x, norm.cdf(x, loc=mean, scale=std))