I use sns.histplot to make 2D density plot. For example
sns.histplot(x=e, y=costheta, bins=50,
cmap=plt.cm.coolwarm,
binrange=[[0,1.05],[-1,1]],
stat="probability",
thresh=1e-5,
norm=mpl.colors.LogNorm(1e-5,1e-2),
vmin=None,vmax=None)
where e and costheta are my data.
Now I want to get the density value of each coordinate from this plot. What should I do?