Wolfram Research

Function Repository Resource:

HertzsprungRussellDiagram

Source Notebook

Plot the position of stars in a Hertzsprung­Russell diagram

Contributed by: Jeff Bryant

ResourceFunction["HertzsprungRussellDiagram"][]

plot the position of the Sun on a Hertzsprung‐Russell diagram.

ResourceFunction["HertzsprungRussellDiagram"][entities]

plot the position the specified entities on a Hertzsprung‐Russell diagram.

Details and Options

Valid domains for entities or entity classes must be from the ”Star” domain.

Examples

Basic Examples

Plot the position of the Sun on the Hertzsprung‐Russell diagram:

In[1]:=
ResourceFunction["HertzsprungRussellDiagram"][]
Out[1]=

Plot the position other stars on the Hertzsprung‐Russell diagram:

In[2]:=
ResourceFunction["HertzsprungRussellDiagram"][
 Entity["Star", "Alnitak"]]
Out[2]=

Plot multiple stars on the Hertzsprung‐Russell diagram:

In[3]:=
ResourceFunction[
 "HertzsprungRussellDiagram"][{Entity["Star", "Sun"], Entity["Star", "Betelgeuse"], Entity["Star", "Alkaid"], Entity["Star", "ProximaCentauri"], Entity["Star", "SiriusB"], Entity["Star", "2MASSJ0523Minus1403"]}]
Out[3]=

Plot entity classes of stars on the Hertzsprung‐Russell diagram:

In[4]:=
ResourceFunction["HertzsprungRussellDiagram"][
 EntityClass["Star", "WhiteDwarfStar"]]
Out[4]=

Options

HertzsprungRussellDiagram takes the same options as ListPlot, but the following options are of particular interest:

In[5]:=
ResourceFunction[
 "HertzsprungRussellDiagram"][{Entity["Star", "Zubenelgenubi"], Entity["Star", "Zubeneshamali"]}, PlotStyle -> Red]
Out[5]=
In[6]:=
ResourceFunction[
 "HertzsprungRussellDiagram"][{Entity["Star", "Zubenelgenubi"], Entity["Star", "Zubeneshamali"]}, PlotTheme -> "Detailed"]
Out[6]=

Resource History

See Also

License Information