pynbody.plot.stars.schmidtlaw

Contents

pynbody.plot.stars.schmidtlaw#

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

Plot star formation surface density vs gas surface density in radial annuli

Changed in version 2.0: If center is True, the transformation of the simulation is now reverted after the plot is made.

The filename, legend and clear arguments have been removed. Use the matplotlib functions directly to save the figure or modify the axes.

The radial argument has been removed, since radial=False was not implemented.

The default compare argument is now False.

Parameters:
  • sim (SimSnap) – The simulation snapshot to plot.

  • center (bool) – Center and align the input simulation as required.

  • pretime (str, optional) – Age of stars to consider for SFR. Default is ‘50 Myr’.

  • diskheight (str, optional) – Height of gas and stars above and below disk considered for SF and gas densities. Default is ‘3 kpc’.

  • rmax (str, optional) – Radius of disk considered. Default is ‘20 kpc’.

  • compare (bool, optional) – Whether to plot Kennicutt (1998) and Bigiel+ (2008) relations for comparison. Default is False.

  • **kwargs – Additional keyword arguments are passed to the matplotlib plot function.