核密度估计图(Kernel Density Estimation, KDE) KDE KDE是一种用来估计概率密度函数的非参数方法 seaborn from numpy.random import randn import matplotlib as mpl import seaborn as sns import matplotlib.pyplot as plt sns.set_palette("hls") mpl.rc("figure", figsize=(10, 6)