pynbody.plot.stars.satlf

Contents

pynbody.plot.stars.satlf#

pynbody.plot.stars.satlf(sim, band='v', filename=None, MWcompare=True, Trentham=True, clear=True, legend=True, label='Simulation', **kwargs)[source]#

satellite luminosity function

Options:

band (‘v’): which Johnson band to use. available filters: U, B, V, R, I, J, H, K

filename (None): name of file to which to save output

MWcompare (True): whether to plot comparison lines to MW

Trentham (True): whether to plot comparison lines to Trentham +

Tully (2009) combined with Koposov et al (2007)

By default, satlf will use the formation mass of the star. In tipsy, this will be taken from the starlog file.

Usage:

>>> import pynbody.plot as pp
>>> h = s.halos()
>>> pp.satlf(h[1],linestyle='dashed',color='k')