Skip to content
Tutorials Center
My learning

Topics

Lesson 37 of 37 ยท Projects and Practice

Project: Build an H-R Diagram

Plot a Hertzsprung-Russell diagram, place well-known stars on it, and read the main sequence, giants and white dwarfs, using luminosity and temperature.

The Hertzsprung-Russell (H-R) diagram is the most useful chart in stellar astronomy. It plots stars by luminosity (brightness) against surface temperature, and groups of stars in different life stages fall into different regions. In this project you will build one, with an unusual convention: temperature decreases to the right.

How to read it

  • x-axis: surface temperature in kelvin, running from hot (left) to cool (right). This is a historical convention from spectral classes.
  • y-axis: luminosity in solar units, usually on a logarithmic scale.
  • Main sequence: the diagonal band from hot, bright stars (upper left) to cool, faint ones (lower right). Hydrogen-fusing stars lie here (see main sequence stars and mass).
  • Giants and supergiants: upper right, cool but very luminous because they are huge.
  • White dwarfs: lower left, hot but faint because they are tiny (see red giants and planetary nebulae).

Stars of the same radius lie along lines of constant radius, from L โˆ Rยฒ Tโด. A star far above the main sequence must be large.

Step 1: well-known stars

We start with a few stars. The values are approximate: temperatures and luminosities from different sources differ by some percent, and for supergiants like Rigel and Betelgeuse by a lot.

Python Plot named stars

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 2: add lines of constant radius

From L/Lโ˜‰ = (R/Rโ˜‰)ยฒ (T/5772)โด we can draw, for each radius, the line L = Rยฒ (T/5772)โด. Small radii lie lower left, large radii upper right.

Step 3: a model population

To see the whole picture, we generate an illustrative population, not real survey data. We take stars along the main sequence (masses between 0.2 and 20 solar masses, using the mass-luminosity relations from the earlier lesson), a handful of giants and some white dwarfs, and compute temperatures from the Stefan-Boltzmann law. Masses are drawn so that low-mass stars are much more common than high-mass ones.

Python Model population with constant-radius lines

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The plot shows three separated groups, as in real H-R diagrams. In a real diagram, made for example from the Gaia catalog, you would see a tight, dense main sequence and a rich giant branch.

Ideas to extend

  1. Mark where a star with a mass of 1, 5 and 20 solar masses sits, and check how long each stays there (see the table in the main sequence lesson).
  2. Draw the path of the Sun on the diagram: main sequence, then up the giant branch, then across to white dwarfs.
  3. Color the points by temperature using the star color from Wien's law.
  4. Look up published catalog data and compare your model with it.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Where on an H-R diagram would you find a very hot but very faint star?

    A white dwarf is hot, but its tiny surface makes it faint.
  2. 2. A star is cool (3,500 K) but 100,000 times more luminous than the Sun. What must be true?

    With a low surface brightness per unit area, only a huge surface area can give such luminosity.
  3. 3. Why is the temperature axis reversed on an H-R diagram?

    It is a convention from the early spectral classification; the main sequence then runs from top left to bottom right.

Summary

  • The H-R diagram plots luminosity against surface temperature, with temperature decreasing to the right.
  • The main sequence, giants, supergiants and white dwarfs fall in distinct regions.
  • Lines of constant radius follow L โˆ Rยฒ Tโด.
  • You can build the diagram from real star data or from a simple model, as done here.

Back to the Astronomy track page.