DotDashed
是一个图形指令,指明随后的线应当绘制为点划线.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (2)
用 EdgeForm 绘制点划线:
Graphics[{Pink, EdgeForm[DotDashed], Rectangle[]}]Graphics3D[{EdgeForm[DotDashed], Cuboid[]}, Boxed -> False]Plot[Sin[x], {x, 0, 2Pi}, PlotStyle -> DotDashed]属性和关系 (3)
DotDashed 等价于 Dashing[{0,Small,Small,Small}]:
DotDashedDashing 和 AbsoluteDashing 提供了绘制的大量方法来制定划线:
Table[Graphics[{Dashing[{r, 0.1 - r}], Line[{{0, 0}, {2, 1}}]}], {r, {0.01, 0.03, 0.05, 0.08}}]Table[Graphics[{AbsoluteDashing[{d, 15 - d}], Line[{{0, 0}, {2, 1}}]}], {d, {2, 5, 8, 12}}]DotDashed 是绝对的划线,不受图像尺寸的影响:
Table[Graphics[{DotDashed, Line[{{0, 0}, {2, 1}}]}, ImageSize -> s], {s, {50, 70, 100}}]相关指南
-
▪
- 图形指令
文本
Wolfram Research (2007),DotDashed,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DotDashed.html.
CMS
Wolfram 语言. 2007. "DotDashed." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/DotDashed.html.
APA
Wolfram 语言. (2007). DotDashed. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DotDashed.html 年
BibTeX
@misc{reference.wolfram_2026_dotdashed, author="Wolfram Research", title="{DotDashed}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/DotDashed.html}", note=[Accessed: 18-July-2026]}
BibLaTeX
@online{reference.wolfram_2026_dotdashed, organization={Wolfram Research}, title={DotDashed}, year={2007}, url={https://reference.wolfram.com/language/ref/DotDashed.html}, note=[Accessed: 18-July-2026]}