def getDensityKernel(x,y):
# filter NaNs and infinite numbers
idx = (np.isfinite(x) * np.isfinite(y))
x = x[idx]
y = y[idx]
# Calculate the point density
xy = np.vstack([x,y])
z = gaussian_kde(xy)(xy)
idx = z.argsort()
return x[idx], y[idx], z[idx]
# RADIAL PROFILES
plot_heating_correlations.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录