Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize the constellations and the stars contained within their boundaries
| ResourceFunction["ConstellationChart"][const] generates a chart of the specified constellation const. | 
| "BoundaryLineStyle" | boundary line style | |
| "GridStyle" | grid style | |
| "HighlightedRegionStyle" | Opacity[0] | highlighted region style | 
| "LineArtStyle" | line art style | |
| "MagnitudeLimit" | 5 | magnitude limit | 
| "MagnitudeScalingFunction" | (Max[0,0.02 -0.0023#1]&) | magnitude scaling function | 
| "MaskRegionStyle" | mask region style | |
| "StarLabels" | Automatic | star labels | 
| "StarStyle" | star style | 
Visualize the constellation Orion, its boundaries, line art, and the stars it contains:
| In[1]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Orion"]]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/22f5f4d6687c29f4.png) | 
| Out[1]= |  | 
Interpret the specified string as a constellation entity:
| In[2]:= | ![ResourceFunction["ConstellationChart"]["Scorpius"]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/64664bfbe0e8b9ef.png) | 
| Out[2]= |  | 
Supported constellations include Northern Hemisphere constellations, like Ursa Major:
| In[3]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "UrsaMajor"]]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/18d2ef3284b8ab32.png) | 
| Out[3]= |  | 
Southern Hemisphere constellations like Crux are also supported:
| In[4]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Crux"]]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/1024b5311e0b3b17.png) | 
| Out[4]= |  | 
The boundary line style can be changed:
| In[5]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Equuleus"], "BoundaryLineStyle" -> Green]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/1e8f3d26528185ee.png) | 
| Out[5]= |  | 
The boundary line can also be turned off:
| In[6]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Equuleus"], "BoundaryLineStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/4e6308a411dfeaed.png) | 
| Out[6]= |  | 
The style of the equatorial coordinate grid can be changed:
| In[7]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Bootes"], "GridStyle" -> Magenta]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/4f153bf516f5322e.png) | 
| Out[7]= |  | 
The equatorial coordinate grid can also be turned off:
| In[8]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Bootes"], "GridStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/4902092da6965618.png) | 
| Out[8]= |  | 
The style of the highlighted region can be changed:
| In[9]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Scutum"], "HighlightedRegionStyle" -> LightYellow]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/4e0d8ee551cf5103.png) | 
| Out[9]= |  | 
The highlighted region can also be turned off:
| In[10]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Scutum"], "HighlightedRegionStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/6953a7c3b33c7d16.png) | 
| Out[10]= |  | 
The style of line art can be changed:
| In[11]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Pegasus"], "LineArtStyle" -> Red]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/04b7f278aad9ba53.png) | 
| Out[11]= |  | 
Line art can also be turned off:
| In[12]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Pegasus"], "LineArtStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/156ac1af06775a79.png) | 
| Out[12]= |  | 
Fainter stars can be seen by changing the magnitude limit:
| In[13]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Ophiuchus"], "MagnitudeLimit" -> 8]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/7fbf0b968ddcee80.png) | 
| Out[13]= |  | 
Constellations like Sagittarius have many faint stars due to being in the direction of the galactic center:
| In[14]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Sagittarius"], "MagnitudeLimit" -> All]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/621885387877f162.png) | 
| Out[14]= |  | 
Constellations like Coma Berenices have relatively fewer stars due to being observed far from the galactic plane:
| In[15]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "ComaBerenices"], "MagnitudeLimit" -> All]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/2f0a35802037afd8.png) | 
| Out[15]= |  | 
Provide a different scaling function for stars based on apparent magnitude:
| In[16]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Gemini"], "MagnitudeScalingFunction" -> (Max[0, 0.1 - 0.02*#] &)]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/41d070a5ec5911a9.png) | 
| Out[16]= |  | 
The style of the outer mask region can be changed:
| In[17]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Lyra"], "MaskRegionStyle" -> LightOrange]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/22e89516b453064a.png) | 
| Out[17]= |  | 
The outer mask region can also be removed:
| In[18]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Lyra"], "MaskRegionStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/03cc2943d223db3a.png) | 
| Out[18]= |  | 
Zooming into a specific area of a constellation region can be done using PlotRange, such as this view of the Pleiades star cluster in Taurus:
| In[19]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Taurus"], "MagnitudeLimit" -> 8, PlotRange -> {{.17, .21}, {.125, .145}}, "MagnitudeScalingFunction" -> (Max[0, 0.03 - 0.0023*#] &), LabelStyle -> Brown]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/0bf1ceb694c9f5d2.png) | 
| Out[19]= |  | 
Label the eight brightest stars:
| In[20]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Cassiopeia"], "StarLabels" -> 8]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/7efb3404b773fbb7.png) | 
| Out[20]= |  | 
The style of the stars can be changed:
| In[21]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Lepus"], "StarStyle" -> Black]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/2387cb5d942695da.png) | 
| Out[21]= |  | 
Stars can also be turned off:
| In[22]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Lepus"], "StarStyle" -> None]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/72225fd1b7048124.png) | 
| Out[22]= |  | 
ConstellationChart can accept any of the 88 official IAU-recognized constellations found in the "Constellation" entity type:
| In[23]:= | ![EntityValue["Constellation", "Entities"]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/2c841931970844ce.png) | 
| Out[23]= |  | 
The current location of a given constellation in your local sky can be found using the resource function SkyChart:
| In[24]:= | ![ResourceFunction["SkyChart"][
 "HighlightedConstellations" -> {Entity["Constellation", "UrsaMajor"]}]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/278f3a2d1ba7dd14.png) | 
| Out[24]= |  | 
Additional properties of constellations can be found using the entity framework:
| In[25]:= | ![Entity["Constellation", "UrsaMajor"]["Dataset"]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/28a40b2f74c97489.png) | 
| Out[25]= |  | 
The "Constellation" entity type provides the "ConstellationGraphic" property with similar results to ConstellationChart, but ConstellationChart provides options for customizing the results more easily:
| In[26]:= | ![Entity["Constellation", "UrsaMajor"]["ConstellationGraphic"]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/05be49d263af2a6d.png) | 
| Out[26]= |  | 
The constellation Serpens is made up of two disjoint regions:
| In[27]:= | ![ResourceFunction["ConstellationChart"]["Serpens"]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/068413b4d3b06c00.png) | 
| Out[27]= |  | 
Create a darker themed result:
| In[28]:= | ![ResourceFunction["ConstellationChart"][
 Entity["Constellation", "Sagittarius"], "MagnitudeLimit" -> 6.5, "BoundaryLineStyle" -> Directive[Dashing[{0, Tiny}], RGBColor[1, .8, 0]], "MaskRegionStyle" -> Black, "StarStyle" -> White, "HighlightedRegionStyle" -> Darker[Blue, .7], "GridStyle" -> Darker[Blue, .2]]](https://www.wolframcloud.com/obj/resourcesystem/images/e1d/e1d899ae-5b27-43c9-a419-8c11eec67d82/6e87495109be3ac8.png) | 
| Out[28]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License