Directive
Directive[g1,g2,…]
表示一个由指令 g1,g2,… 组成的单图形指令.
更多信息
- 任何支持 Graphics 或 Graphics3D 的指令可以用于 Directive 之内.
- Directive[{g1,g2,…}] 等价于 Directive[g1,g2,…].
范例
打开所有单元 关闭所有单元基本范例 (4)
Graphics[{Directive[Red, Thick], Circle[], Directive[Blue, Opacity[0.5]], Rectangle[{0, -1}, {2, 1}]}]Plot[Sin[x], {x, 0, 10}, PlotStyle -> Directive[Orange, Thick, Dashed]]Plot3D[Sin[x + y ^ 2], {x, -3, 3}, {y, -2, 2}, PlotStyle -> Directive[Orange, Specularity[White, 10]], Mesh -> None]Plot[{Sin[x], Cos[x]}, {x, 0, 10}, PlotStyle -> {Directive[Red, Dashed], Directive[Blue, Thick]}]Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, 2Sin[x]}, LabelStyle -> Directive[Medium, Italic]]文本
Wolfram Research (2007),Directive,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Directive.html.
CMS
Wolfram 语言. 2007. "Directive." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Directive.html.
APA
Wolfram 语言. (2007). Directive. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Directive.html 年
BibTeX
@misc{reference.wolfram_2026_directive, author="Wolfram Research", title="{Directive}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Directive.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_directive, organization={Wolfram Research}, title={Directive}, year={2007}, url={https://reference.wolfram.com/language/ref/Directive.html}, note=[Accessed: 11-September-2026]}