pynbody.plot.gas.rho_T

Contents

pynbody.plot.gas.rho_T#

pynbody.plot.gas.rho_T(sim, rho_units=None, rho_range=None, t_range=None, two_phase='split', **kwargs)[source]#

Plot a 2d histogram of temperature vs density for the gas in the snapshot

Parameters:
  • sim (pynbody.snapshot.simsnap.SimSnap) – The snapshot or subsnap to plot

  • rho_units (str | pynbody.units.Unit | None) – The units to use for the density. If None, the current snapshot units are used.

  • rho_range (tuple | None) – The range of densities to plot, in the same units as rho_units. If None, the full range is used.

  • t_range (tuple | None) – The range of temperatures to plot. If None, the full range is used.

  • two_phase (str) – If two-phase particles are detected, either plot each phase separately (‘split’), or merge them (‘merge’). Default is ‘split’.

  • **kwargs – Additional keyword arguments are passed to hist2d()