Dashed
是一个图形指令,指明随后的线段应当以虚线画出.
范例
打开所有单元 关闭所有单元基本范例 (3)
Graphics[{Dashed, Line[{{0, 0}, {2, 1}}]}]Graphics3D[{Dashed, Line[{{0, 0, 0}, {2, 1, 1}}]}]Grid[Table[x, {4}, {7}], Frame -> All, FrameStyle -> Dashed]Plot[Sin[x], {x, 0, 2Pi}, PlotStyle -> Dashed]范围 (1)
利用 EdgeForm 画虚线边线:
Graphics[{Pink, EdgeForm[Dashed], Rectangle[]}]Graphics3D[{EdgeForm[Dashed], Cuboid[]}, Boxed -> False]属性和关系 (3)
Dashed 等同于 Dashing[{Small, Small}]:
DashedDashing 和 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}}]Dashed 是绝对的虚线,与图形大小无关:
Table[Graphics[{Dashed, Line[{{0, 0}, {2, 1}}]}, ImageSize -> s], {s, {50, 70, 100}}]相关指南
-
▪
- 图形指令 ▪
- 图的可视化 ▪
- 图的样式、标记和布局
文本
Wolfram Research (2007),Dashed,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Dashed.html.
CMS
Wolfram 语言. 2007. "Dashed." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Dashed.html.
APA
Wolfram 语言. (2007). Dashed. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Dashed.html 年
BibTeX
@misc{reference.wolfram_2026_dashed, author="Wolfram Research", title="{Dashed}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Dashed.html}", note=[Accessed: 15-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_dashed, organization={Wolfram Research}, title={Dashed}, year={2007}, url={https://reference.wolfram.com/language/ref/Dashed.html}, note=[Accessed: 15-September-2026]}