pynbody.plot.util.add_redshift_axis

pynbody.plot.util.add_redshift_axis#

pynbody.plot.util.add_redshift_axis(sim, labelzs=[0.0, 0.2, 0.5, 1.0, 1.5, 2.0, 3.0, 5.0])[source]#

Add a top redshift axis to a plot with time on the x-axis

Parameters:
  • sim (pynbody.snapshot.SimSnap) – The simulation snapshot to which the plot refers

  • labelzs (list) – List of redshifts at which to place labels