pynbody.plot.generic.gauss_kde

Contents

pynbody.plot.generic.gauss_kde#

pynbody.plot.generic.gauss_kde(*args, **kwargs)[source]#

Deprecated: plot 2D gaussian kernel density estimate (KDE) given values at points (x, y).

Changed in version 2.0: This function is deprecated. Use hist2d() with the use_kde keyword set to True instead.

Arguments and keyword arguments are passed to hist2d(), with use_kde set to True. Two keywords are given special treatment and passed to fast_kde():

  • norm: boolean (default: False) If False, the output is only corrected for the kernel. If True, the result is normalized such that the integral over the area yields 1.

  • nocorrelation: (default: False) If True, the correlation between the x and y coords will be ignored when preforming the KDE.