AtomLabelStyle
是 MoleculePlot 和 MoleculePlot3D 的一个选项,指定原子标签的样式.
更多信息
- Style 中使用的任何样式规范都可以用作 AtomLabelStyle 的设置.
- 常见设置包括:
-
Automatic 使用自动设置的样式 style 对所有标签使用 style {1style1,2style2,…} 对索引为 i 的原子使用 stylei {patt1style1,patt2style2,…} 对与模式 patti 匹配的原子使用 stylei
范例
基本范例 (3)
MoleculePlot[Molecule["water"], AtomLabels -> Table[i -> Subscript[a, i], {i, 3}], AtomLabelStyle -> Directive[Red, Italic, 12]]MoleculePlot[Molecule["water"], AtomLabels -> Table[i -> Subscript[a, i], {i, 3}], AtomLabelStyle -> {1 -> Directive[Red, Italic, 15], 2 -> Directive[Blue, Italic, 15]}]MoleculePlot[Molecule["benzaldehyde"], AtomLabels -> "AtomIndex", AtomLabelStyle -> {"C" -> Directive[Red, Italic, 15], _ -> Directive[Blue, Bold, 15]}]MoleculePlot3D[Molecule["tetraaminomethane"], AtomLabels -> "AtomIndex", AtomLabelStyle -> {"H" -> Directive[Blue, Italic, 15], _ -> Directive[Red, Bold, 15]}]文本
Wolfram Research (2021),AtomLabelStyle,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AtomLabelStyle.html.
CMS
Wolfram 语言. 2021. "AtomLabelStyle." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AtomLabelStyle.html.
APA
Wolfram 语言. (2021). AtomLabelStyle. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AtomLabelStyle.html 年
BibTeX
@misc{reference.wolfram_2026_atomlabelstyle, author="Wolfram Research", title="{AtomLabelStyle}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/AtomLabelStyle.html}", note=[Accessed: 09-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_atomlabelstyle, organization={Wolfram Research}, title={AtomLabelStyle}, year={2021}, url={https://reference.wolfram.com/language/ref/AtomLabelStyle.html}, note=[Accessed: 09-August-2026]}