pynbody.plot.generic.fourier_map

Contents

pynbody.plot.generic.fourier_map#

pynbody.plot.generic.fourier_map(sim, nbins=100, nmin=1000, nphi=100, mmin=1, mmax=7, rmax=10, levels=[0.01, 0.05, 0.1, 0.2], subplot=None, ret=False, **kwargs)[source]#

Plot an overdensity map generated from a Fourier expansion of the particle distribution. A Profile() is made and passed to inv_fourier() to obtain an overdensity map. The map is plotted using the usual matplotlib.contour.

Input:

sim : a SimSnap() object

Optional Keywords:

nbins (100) : number of radial bins to use for the profile

nmin (1000) : minimum number of particles required per bin

nphi (100) : number of azimuthal bins to use for the map

mmin (1) : lowest multiplicity Fourier component

mmax (7) : highest multiplicity Fourier component

rmax (10) : maximum radius to use when generating the profile

levels [0.01,0.05,0.1,0.2] : tuple of levels for plotting contours

subplot (None) : Axes object on which to plot the contours