是 DiscretePlot 和 DiscretePlot3D 的一个选项,给出一个函数,用以生成绘制每个延伸元素(Extent Element)的基元.
ExtentElementFunction
是 DiscretePlot 和 DiscretePlot3D 的一个选项,给出一个函数,用以生成绘制每个延伸元素(Extent Element)的基元.
更多信息
- ExtentElementFunction->f 指定每个延伸元素应该使用由 f[region,point] 给出的图形基元绘制.
- ExtentElementFunction->"name" 使用一个已命名函数,以生成延伸元素.
- 在 ExtentElementFunction->f 中, f 的 region 变量以下列方式给出:
-
DiscretePlot {{xmin,xmax},{ymin,ymax}} DiscretePlot3D {{xmin,xmax},{ymin,ymax},{zmin,zmax}} - 在 ExtentElementFunction->f 中,f 的 point 变量以下列方式给出:
-
DiscretePlot {x,y} DiscretePlot3D {x,y,z}
范例
基本范例 (3)
ChartElementData["DiscretePlot"]DiscretePlot[Sin[t], {t, 10}, ExtentSize -> Full, ExtentElementFunction -> "ArrowRectangle", ColorFunction -> "Rainbow"]DiscretePlot3D[PDF[MultivariatePoissonDistribution[3, {1, 1}], {t, u}], {t, 0, 10}, {u, 0, 10}, ExtentSize -> Scaled[0.8], ColorFunction -> "SolarColors", ExtentElementFunction -> "PlaneFadingCube"]vase[{{xmin_, xmax_}, {ymin_, ymax_}, {zmin_, zmax_}}, ___] := {CapForm[None], Tube[
Table[{(xmin + xmax) / 2, (ymin + ymax) / 2, z}, {z, zmin, zmax, (zmax - zmin) / 15}],
Join[Sort[RandomReal[(xmax - xmin){0.1, 0.5}, 8], Less], Sort[RandomReal[(xmax - xmin){0.1, 0.5}, 8], Greater]]]}DiscretePlot3D[PDF[MultivariatePoissonDistribution[1, {1, 1}], {x, y}], {x, 0, 5}, {y, 0, 5}, ExtentSize -> Full, PlotRange -> {0, 0.1}, ColorFunction -> "DeepSeaColors", ExtentElementFunction -> vase]相关指南
-
▪
- 绘图选项
文本
Wolfram Research (2010),ExtentElementFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ExtentElementFunction.html.
CMS
Wolfram 语言. 2010. "ExtentElementFunction." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ExtentElementFunction.html.
APA
Wolfram 语言. (2010). ExtentElementFunction. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ExtentElementFunction.html 年
BibTeX
@misc{reference.wolfram_2026_extentelementfunction, author="Wolfram Research", title="{ExtentElementFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/ExtentElementFunction.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_extentelementfunction, organization={Wolfram Research}, title={ExtentElementFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/ExtentElementFunction.html}, note=[Accessed: 16-September-2026]}