pynbody.plot.metals.mdf#
- pynbody.plot.metals.mdf(sim, filename=None, clear=True, range=[-5, 0.3], axes=False, **kwargs)[source]#
Metallicity Distribution Function
Plots a metallicity distribution function to the best of matplotlib’s abilities. Unfortunately, the “normed” keyword is buggy and does not return a PDF. The “density” keyword should, but it not yet supported in many versions of numpy.
Usage:
>>> import pynbody.plot as pp >>> pp.mdf(s,linestyle='dashed',color='k')