AstroBackground
是一个选项,指定 AstroGraphics 图的背影样式.
更多信息
- AstroGraphics[prims,…] 输出的天文背景是出现在基元 prims 下面的图. 没有基元的图,如 AstroGraphics[{},…] 将只显示天文背景,以及其他辅助元素,如天文网格线.
- 对于任何有效的 AstroStyling 天空样式,可用 AstroBackgroundAstroStyling[skystyle] 给出AstroBackground 值. 对于已命名的天空样式,如 "BlackSky" 或 "GalacticSky",也可用 AstroBackground"skystyle" 给出 AstroBackgroundAstroStyling["skystyle"].
- 可用的天空样式包括:
-

"BlackSky" 黑色背景上的恒星和行星 
"GalacticSky" 银河系图像上的恒星和行星 
"WhiteSky" 白色背景上的恒星和行星 - 默认情况下,AstroBackgroundAutomatic 使用 "BlackSky" 天空样式.
- AstroBackgroundNone 指定不使用天文背景,这意味着不显示任何背景区域.
- 在天文图中,AstroBackground 比 Background 的优先级高.
范例
打开所有单元 关闭所有单元基本范例 (3)
AstroGraphics[Entity["Star", "Betelgeuse"], AstroRange -> Quantity[20, "AngularDegrees"], AstroReferenceFrame -> "Equatorial"]AstroGraphics[Entity["Star", "Shaula"], AstroRange -> Quantity[20, "AngularDegrees"], AstroBackground -> "GalacticSky", AstroReferenceFrame -> "Ecliptic"]AstroGraphics[Entity["Star", "Betelgeuse"], AstroRange -> Quantity[30, "AngularDegrees"], AstroReferenceFrame -> "Equatorial", AstroBackground -> AstroStyling[{"BlackSky", "ShowConstellationIllustrations" -> True, "ShowMainPlanes" -> False}]]范围 (4)
AstroGraphics[AstroReferenceFrame -> "Equatorial"]AstroGraphics[AstroReferenceFrame -> "Equatorial", AstroBackground -> "GalacticSky"]在 AstroGraphics 中使用白色天空背景:
AstroGraphics[AstroReferenceFrame -> "Equatorial", AstroBackground -> "WhiteSky"]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]
};AstroGraphics[Entity["Constellation", "Scorpius"], AstroBackground -> AstroStyling[{"GalacticSky", "HideObjects" -> {"Sun"}, "ShowConstellations" -> {Entity["Constellation", "Scorpius"]}, style}], AstroReferenceFrame -> "J2000"]文本
Wolfram Research (2022),AstroBackground,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AstroBackground.html.
CMS
Wolfram 语言. 2022. "AstroBackground." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AstroBackground.html.
APA
Wolfram 语言. (2022). AstroBackground. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AstroBackground.html 年
BibTeX
@misc{reference.wolfram_2026_astrobackground, author="Wolfram Research", title="{AstroBackground}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/AstroBackground.html}", note=[Accessed: 12-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_astrobackground, organization={Wolfram Research}, title={AstroBackground}, year={2022}, url={https://reference.wolfram.com/language/ref/AstroBackground.html}, note=[Accessed: 12-September-2026]}