pynbody.plot.generic

Contents

pynbody.plot.generic#

generic#

Flexible and general plotting functions

Functions

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

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

gauss_kde(xo, yo[, weights, mass, gridsize, ...])

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

hist2d(xo, yo[, weights, mass, gridsize, ...])

Plot 2D histogram for arbitrary arrays that get passed in.

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, axes])

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

qprof(sim[, qty, weights, q, ax, ylabel, ...])