HRD.py

Python script for the HRD plot.

hrd.py — Python Source, 284 bytes

File contents

# Make a HRD plot

# Execute this in the run directory in which
# the 'LOGS' directory is located. 
# Find where to get mesa.py at the MESA user forum
# http://www.mesastar.org

import mesa
from matplotlib.pylab import *
m=mesa.star_log('LOGS')
m.hrd()
m.xlimrev()
savefig('hrd.png')