pynbody.plot.stars.schmidtlaw

Contents

pynbody.plot.stars.schmidtlaw#

pynbody.plot.stars.schmidtlaw(sim, center=True, filename=None, pretime='50 Myr', diskheight='3 kpc', rmax='20 kpc', compare=True, radial=True, clear=True, legend=True, bins=10, **kwargs)[source]#

Schmidt Law

Plots star formation surface density vs. gas surface density including the observed relationships. Currently, only plots densities found in radial annuli.

Usage:

>>> import pynbody.plot as pp
>>> pp.schmidtlaw(h[1])

Optional keyword arguments:

center: bool

center and align the input simulation faceon.

filename: string

Name of output file

pretime (default=’50 Myr’): age of stars to consider for SFR

diskheight (default=’3 kpc’): height of gas and stars above

and below disk considered for SF and gas densities.

rmax (default=’20 kpc’): radius of disk considered

compare (default=True): whether to include Kennicutt (1998) and

Bigiel+ (2008) for comparison

radial (default=True): should bins be annuli or a rectangular grid?

bins (default=10): How many radial bins should there be?

legend: boolean

whether to draw a legend or not