AstroStyling["skystyle"]
指定用来渲染 AstroGraphics 图中星空的样式.
AstroStyling[{"skystyle","param1"val1,"param2"val2,…}]
根据 "parami"vali 数据修改 "skystyle" 的默认参数值.
AstroStyling
AstroStyling["skystyle"]
指定用来渲染 AstroGraphics 图中星空的样式.
AstroStyling[{"skystyle","param1"val1,"param2"val2,…}]
根据 "parami"vali 数据修改 "skystyle" 的默认参数值.
更多信息
- AstroStyling[…] 指定被用作 AstroGraphics 的 AstroBackground 选项的值.
- "skystyle" 的可能形式包括:
-
Automatic 使用默认样式 None 不指定明确的样式 "BlackSky" 在黑色背景上显示恒星、行星和其他天体 "GalacticSky" 在银河系图像上显示天文物体 "WhiteSky" 在白色背景上显示天文物体 - 用点显示恒星,由其视星等决定大小,用颜色表示温度. 用参数 "StarLabelStyle" 指定标签的样式.
- 用定向椭圆显示星系,其样式则由参数 "GalaxyStyle" 给定. 用参数 "GalaxyLabelStyle" 指定标签的样式.
- 用虚线圆显示疏散星团,其样式由参数 "OpenClusterStyle" 给定. 用参数 "OpenClusterLabelStyle" 指定标签的样式.
- 用内部有十字的圆显示球状星团,其样式由参数 "GlobularClusterStyle" 给定. 用参数 "GlobularClusterLabelStyle" 指定标签的样式.
- 用正方形显示弥漫星云,其样式由参数 "DiffuseNebulaStyle" 给定. 用参数 "DiffuseNebulaLabelStyle" 指定标签的样式.
- 用外部有十字的圆显示行星状星云,其样式由参数 "PlanetaryNebulaStyle" 给定. 用参数 "PlanetaryNebulaLabelStyle" 指定标签的样式.
- 可对星座的显示进行修改的参数包括:
-
"ShowConstellationBoundaries" True 是否显示星座的边界线 "ShowConstellationIllustrations" False 是否显示星座艺术效果图 "ShowConstellationLines" True 是否显示星座形状线 "ShowConstellationNames" True 是否显示星座的名称 "ShowConstellations" Automatic 是否显示星座或显示哪些星座 - 控制星座不同部分样式的参数包括:
-
"ConstellationBoundaryStyle" 边界线的样式 "ConstellationIllustrationStyle" 示意多边形的样式 "ConstellationLineStyle" 星座形状线的样式 "ConstellationNameStyle" 星座文字名称的样式 "ConstellationRegionStyle" 星座背景多边形的样式 - 控制不同参考平面的样式的参数包括:
-
"EclipticStyle" 黄道面的样式 "EquatorStyle" 赤道面的样式 "GalacticStyle" 银河面的样式 "HorizonStyle" 地平面的样式 "ShowMainPlanes" 是否显示主要的参考平面 - 控制恒星的样式的参数包括:
-
"ShowStarTooltips" 是否显示恒星的提示条 "StarLabelStyle" 恒星的标签的样式 - 其他样式参数包括:
-
"HideObjects" 要隐藏哪些对象 "ShowExtrasolarObjects" 是否显示恒星、星团、星云和星系 "ShowSolarSystemObjects" 是否显示太阳系中的物体
范例
打开所有单元 关闭所有单元基本范例 (3)
AstroGraphics[Entity["Constellation", "UrsaMajor"], AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationIllustrations" -> True}]]AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "EquatorStyle" -> StandardMagenta}]]AstroGraphics[Entity["Galaxy", "M51"], AstroRange -> Quantity[.5, "AngularDegrees"], AstroBackground -> AstroStyling[{"DarkSky", "GalaxyStyle" -> Directive[AbsoluteDashing[{2, 2}], Thickness[.005], StandardYellow]}]]范围 (35)
天文物体的标签的样式 (6)
AstroGraphics[Entity["Star", "Rigel"], AstroReferenceFrame -> {"Ecliptic", DateObject[{2025, 3, 6, 10, 0, 0}]}, AstroBackground -> AstroStyling[{"DarkSky", "StarLabelStyle" -> StandardPink}]]AstroGraphics[{Entity["Galaxy", "M87"]}, AstroRange -> Quantity[2, "AngularDegrees"], AstroReferenceFrame -> "ICRS", AstroBackground -> AstroStyling[{"BlackSky", "GalaxyLabelStyle" -> StandardMagenta}]]AstroGraphics[{Entity["Constellation", "Cygnus"]}, AstroReferenceFrame -> "ICRS", AstroBackground -> AstroStyling[{"BlackSky", "OpenClusterLabelStyle" -> StandardMagenta}]]AstroGraphics[{Entity["Constellation", "Sagittarius"]}, AstroRange -> Quantity[15, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "GlobularClusterLabelStyle" -> StandardMagenta}]]AstroGraphics[{Entity["Constellation", "Scorpius"]}, AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "DiffuseNebulaLabelStyle" -> StandardMagenta}]]AstroGraphics[{Entity["Constellation", "Scorpius"]}, AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "PlanetaryNebulaLabelStyle" -> StandardMagenta}]]恒星的样式 (3)
AstroGraphics[AstroReferenceFrame -> {"Equatorial", Here}, AstroBackground -> AstroStyling[{"BlackSky", "ShowStarTooltips" -> True}]]AstroGraphics[AstroReferenceFrame -> {"Equatorial", Here}, AstroBackground -> AstroStyling[{"BlackSky", "StarLabelStyle" -> StandardMagenta}]]AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "ShowStarMaxMagnitude" -> 1}]]显示亮度高于 6.5 等的恒星,对应黑暗天空下肉眼可见的极限:
AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "ShowStarMaxMagnitude" -> 6.5}]]系外天体的样式 (5)
AstroGraphics[Entity["Galaxy", "M31"], AstroRange -> Quantity[2, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "GalaxyStyle" -> Directive[AbsoluteDashing[{2, 2}], Thickness[.005], StandardYellow]}]]AstroGraphics[Entity["Star", "EtaPersei"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "OpenClusterStyle" -> StandardBlue}]]AstroGraphics[Entity["StarCluster", "M13"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "GlobularClusterStyle" -> StandardOrange}]]AstroGraphics[Entity["Nebula", "M42"], AstroRange -> Quantity[10, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "DiffuseNebulaStyle" -> StandardMagenta}]]AstroGraphics[Entity["Nebula", "M57"], AstroRange -> Quantity[.15, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "PlanetaryNebulaStyle" -> Directive[Dashed, Thick, StandardBlue]}]]星座的样式 (11)
AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellations" -> True}]]AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellations" -> {Entity["Constellation", "UrsaMajor"], Entity["Constellation", "UrsaMinor"]}}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationIllustrations" -> True}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationBoundaries" -> False}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationLines" -> False}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationNames" -> False}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ConstellationBoundaryStyle" -> StandardRed}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationIllustrations" -> True, "ConstellationIllustrationStyle" -> Directive[StandardRed, Opacity[.25]]}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ConstellationLineStyle" -> StandardBlue}]]默认情况下,将星座显示在天文缩放级别为 2.5 或更大的地图中:
AstroGraphics[]Options[%, AstroZoomLevel]AstroGraphics[AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationMinZoom" -> 1}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ConstellationNameStyle" -> StandardRed}]]AstroGraphics[Entity["Constellation", "Lepus"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationRegions" -> True, "ShowConstellations" -> {Entity["Constellation", "Lepus"]}, "ConstellationRegionStyle" -> Yellow}]]参考平面的样式 (5)
AstroGraphics[AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowMainPlanes" -> False}]]AstroGraphics[AstroReferenceFrame -> {"Equatorial", Here}, AstroBackground -> AstroStyling[{"BlackSky", "EquatorStyle" -> StandardMagenta}]]AstroGraphics[AstroReferenceFrame -> {"Equatorial", Here}, AstroBackground -> AstroStyling[{"BlackSky", "EclipticStyle" -> StandardMagenta}]]AstroGraphics[AstroReferenceFrame -> {"Equatorial", Here}, AstroBackground -> AstroStyling[{"BlackSky", "GalacticStyle" -> StandardMagenta}]]AstroGraphics[AstroReferenceFrame -> {"Ecliptic", Here}, AstroBackground -> AstroStyling[{"BlackSky", "HorizonStyle" -> Magenta, "ShowSolarSystemObjects" -> False}]]用于禁止显示天体的样式参数 (5)
AstroGraphics[AstroReferenceFrame -> "Galactic", AstroBackground -> AstroStyling[{"BlackSky"}]]AstroGraphics[AstroReferenceFrame -> "Galactic", AstroBackground -> AstroStyling[{"BlackSky", "HideObjects" -> {Entity["Star", "Sun"]}}]]AstroGraphics[AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky"}]]用 "ShowSolarSystemObjects" 禁止显示太阳系的天体:
AstroGraphics[AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowSolarSystemObjects" -> False}]]AstroGraphics[{Entity["Galaxy", "M87"]}, AstroReferenceFrame -> "Ecliptic", AstroRange -> Quantity[2, "AngularDegrees"]]用 "ShowExtrasolarObjects" 禁止显示这些天体:
AstroGraphics[{Entity["Galaxy", "M87"]}, AstroReferenceFrame -> "Ecliptic", AstroRange -> Quantity[2, "AngularDegrees"], AstroBackground -> AstroStyling[{"BlackSky", "ShowExtrasolarObjects" -> False}]]AstroGraphics[Entity["Nebula", "M57"], AstroRange -> Quantity[.15, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"DarkSky", "PlanetaryNebulaStyle" -> Directive[Dashed, Thick, Blue]}]]style = {
"ShowConstellationIllustrations" -> True,
"ShowConstellationRegions" -> True, "ConstellationRegionStyle" -> Darker[Blue, .2], "ConstellationLineStyle" -> Opacity[0.6, LightBlue],
"ShowConstellationBoundaries" -> True, "ConstellationBoundaryStyle" -> Directive[Dashing[{0, Tiny}], Yellow], "ConstellationNameStyle" -> GrayLevel[0.7],
"HideObjects" -> Automatic
};AstroGraphics[Entity["Constellation", "Scorpius"], AstroBackground -> AstroStyling[{"GalacticSky", "ShowConstellations" -> {Entity["Constellation", "Scorpius"]}, style}], AstroReferenceFrame -> "J2000"]巧妙范例 (1)
style = {
"ShowConstellationIllustrations" -> True,
"ShowConstellationRegions" -> True, "ConstellationRegionStyle" -> Darker[Blue, .2], "ConstellationLineStyle" -> Opacity[0.6, LightBlue],
"ShowConstellationBoundaries" -> True, "ConstellationBoundaryStyle" -> Directive[Dashing[{0, Tiny}], Yellow], "ConstellationNameStyle" -> GrayLevel[0.7],
"HideObjects" -> Automatic
};AstroGraphics[Entity["Constellation", "Scorpius"], AstroBackground -> AstroStyling[{"GalacticSky", "ShowConstellations" -> {Entity["Constellation", "Scorpius"]}, style}], AstroReferenceFrame -> "J2000"]文本
Wolfram Research (2022),AstroStyling,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AstroStyling.html.
CMS
Wolfram 语言. 2022. "AstroStyling." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AstroStyling.html.
APA
Wolfram 语言. (2022). AstroStyling. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AstroStyling.html 年
BibTeX
@misc{reference.wolfram_2026_astrostyling, author="Wolfram Research", title="{AstroStyling}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/AstroStyling.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_astrostyling, organization={Wolfram Research}, title={AstroStyling}, year={2022}, url={https://reference.wolfram.com/language/ref/AstroStyling.html}, note=[Accessed: 16-September-2026]}