pynbody.plot.generic

pynbody.plot.generic#

Flexible plotting functions

Changed in version 2.0: The qprof function has been removed. Use the pynbody.analysis.profile module instead. For examples, see the Profiles tutorial (section on Calculating Derivatives and Dispersions).

Significant changes to the hist2d() function have been made. See the function documentation for more information.

The gauss_kde() function is deprecated. Use hist2d() with the use_kde keyword set to True instead.

Functions

fourier_map(sim[, nbins, nmin, nphi, mmin, ...])

Plot an overdensity map generated from a Fourier expansion of the particle distribution.

gauss_kde(*args, **kwargs)

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

hist2d(x, y[, weights, values, gridsize, ...])

Plot 2D histogram for arbitrary arrays x and y.

make_contour_plot(arr, xs, ys[, x_range, ...])

Plot a contour plot of grid arr corresponding to bin centers specified by xs and ys.

prob_plot(x, y, weight[, nbins, extent, ...])

Make a plot of the probability of y given x, i.e. p(y|x).