pynbody.plot.stars.sbprofile

Contents

pynbody.plot.stars.sbprofile#

pynbody.plot.stars.sbprofile(sim, band='v', diskheight='3 kpc', rmax='20 kpc', binning='equaln', center=True, clear=True, filename=None, axes=False, fit_exp=False, print_ylabel=True, fit_sersic=False, **kwargs)[source]#

surface brightness profile

Usage:

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

Options:

band (‘v’): which Johnson band to use. available filters: U, B,

V, R, I, J, H, K

*fit_exp*(False): Fits straight exponential line outside radius specified.

*fit_sersic*(False): Fits Sersic profile outside radius specified.

diskheight(‘3 kpc’) rmax(‘20 kpc’): Size of disk to be profiled

binning(‘equaln’): How show bin sizes be determined? based on

pynbody.analysis.profile

center(True): Automatically align face on and center?

axes(False): In which axes (subplot) should it be plotted?

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

needs a description of all keywords

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