BondLabelStyle
是 MoleculePlot 和 MoleculePlot3D 的一个选项,指定化学键标签的样式.
更多信息
- Style 中使用的任何样式规范都可以用作 BondLabelStyle 的设置.
- 常见设置包括:
-
Automatic 使用自动设置的样式 style 对所有键使用 style {b1->style1,b2->style2,…} 对键 bi 使用 stylei {pattistylei,…} 对与模式 patti 匹配的边使用 stylei - 可给出如 Red 这样的颜色指令,以及 Bold 或 Small 这样的文字样式规范.
- 给定选项设置 BondLabelStyle->style 实际上相当于用 Style[label,style] 替换格式或相关结构的类似标签的元素.
范例
基本范例 (3)
MoleculePlot[Molecule["butane"], BondLabels -> "Hi", BondLabelStyle -> Directive[Red, Italic, 18]]MoleculePlot[Molecule["butane"], BondLabels -> "Hi", BondLabelStyle -> {Bond[{1, 2}, "Single"] -> Directive[Red, Italic, 18], _ -> Directive[Blue, Bold, 18]}]MoleculePlot[Molecule["benzaldehyde"], BondLabels -> "BondIndex", BondLabelStyle -> {Bond[{_, "O"}] -> Directive[Blue, Italic, 15], _ -> Directive[Red, Bold, 15]}]MoleculePlot3D[Molecule["tetraaminomethane"], BondLabels -> "BondIndex", BondLabelStyle -> {Bond[{_, "H"}] -> Directive[Blue, Italic, 15], _ -> Directive[Red, Bold, 15]}]文本
Wolfram Research (2021),BondLabelStyle,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BondLabelStyle.html.
CMS
Wolfram 语言. 2021. "BondLabelStyle." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/BondLabelStyle.html.
APA
Wolfram 语言. (2021). BondLabelStyle. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BondLabelStyle.html 年
BibTeX
@misc{reference.wolfram_2026_bondlabelstyle, author="Wolfram Research", title="{BondLabelStyle}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/BondLabelStyle.html}", note=[Accessed: 15-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bondlabelstyle, organization={Wolfram Research}, title={BondLabelStyle}, year={2021}, url={https://reference.wolfram.com/language/ref/BondLabelStyle.html}, note=[Accessed: 15-August-2026]}