ListPointPlot3D[{{x1,y1,z1},{x2,y2,z2},…}]
绘制坐标为 {xi,yi,zi} 的点的三维散点图.
ListPointPlot3D[array]
绘制高度值为二维数组的点的三维散点图.
ListPointPlot3D[{data1,data2,…}]
绘制几组点,默认情况下使用不同颜色.
ListPointPlot3D
ListPointPlot3D[{{x1,y1,z1},{x2,y2,z2},…}]
绘制坐标为 {xi,yi,zi} 的点的三维散点图.
ListPointPlot3D[array]
绘制高度值为二维数组的点的三维散点图.
ListPointPlot3D[{data1,data2,…}]
绘制几组点,默认情况下使用不同颜色.
更多信息和选项
- 可以用下列形式给出 xi、yi 和 zi 的值:
-
xi 实数 Quantity[xi,unit] 带有单位的量 Around[xi,ei] 不确定性为 ei 的值 xi Interval[{xmin,xmax}] 位于 xmin 和 xmax 之间的值 - 不具有上述形式的数值 xi、yi 和 zi 将被视为缺失值,并且不显示.
- datai 有如下形式和解释:
-
<|"k1"{x1,y1,z1},"k2"{x2,y2,z2},…|> 数值 {{x1,y1,z1},{x2,y2,z2},…} {{x1,y1,z1}"lbl1",{x2,y2,z2}"lbl2",…}, data{"lbl1","lbl2",…} 带有标签 {lbl1,lbl2,…} 的数值 {{x1,y1,z1},{x2,y2,z2},…} SparseArray 用一般数组的形式给出的值 QuantityArray 量值 WeightedData 未加权的值 - ListPointPlot3D[Tabular[…]cspec] 使用列指定 cspec 从表格对象中提取值并绘制.
- 在绘制表格数据时,允许使用以下形式的列指定 cspec:
-
{colx,coly,colz} 绘制 z 列与列 x 和 y 的对比图 {{colx1,coly1,colz1},{colx2,coly2,colz2},…} 绘制列 z1 与列 x1和列 y1、列 z2 与列 x2 和列 y2、等的对比图 - 可将下列封装 w 用于 datai:
-
Annotation[datai,label] 为数据提供注释 Button[datai,action] 定义数据被点击时要执行的操作 Callout[datai,label] 用标注 (callout) 标记数据 Callout[datai,label,pos] 在相对位置 pos 上放置标注 (callout) EventHandler[datai,…] 定义数据的通用事件处理程序 Hyperlink[datai,uri] 把数据变为一个超链接 Labeled[datai,label] 标注数据 Labeled[datai,label,pos] 在相对位置 pos 上放置标签 Legended[datai,label] 在图例中标识数据 PopupWindow[datai,cont] 为数据添加弹出窗口 StatusArea[datai,label] 当鼠标移过时在状态栏中显示 Style[datai,styles] 用指定样式显示数据 Tooltip[datai,label] 为数据添加提示条 Tooltip[datai] 将数据值用作提示条 - 可在多个层级上应用封装 w:
-
{{…,w[zi,j],…}} 封装数组数据中的值 zi,j {…,w[{xi,yi,zi}],…} 封装点 {xi,yi,zi} w[datai] 封装数据 w[{data1,…}] 封装一组 datai w1[w2[…]] 使用嵌套封装 - 在 Callout、Labeled 和 Placed 中可使用以下位置 pos:
-
Automatic 自动放置标签 Above, Below, Before, After 数据周围的位置 {pos,epos} 在数据的相对位置 pos 处放置的标签中的 epos - 标签被放置在总是正对相机的 billboard plane 上,Before、After 等指代的是该平面上的位置.
- ListPointPlot3D 具有与 Graphics3D 相同的选项,不同之处和更多选项如下所示: [所有选项的列表]
-
Axes True 是否绘制坐标轴 BoxRatios {1,1,0.4} 三维边界框的比率 ColorFunction Automatic 如何确定点的颜色 ColorFunctionScaling True 是否缩放传递给 ColorFunction 的参数 DataRange Automatic 假定的数据的 x 和 y 值的范围 Filling None 如何填充各个点的茎杆 FillingStyle Automatic 用于填充的样式 IntervalMarkers Automatic 如何呈现不确定性 IntervalMarkersStyle Automatic 具有不确定性的元素的样式 LabelingFunction Automatic 如何标记点 LabelingSize Automatic callout 和标签的尺寸 LabelingTarget Automatic 确定怎样自动安排标签的位置 PerformanceGoal $PerformanceGoal 优化的目标 PlotFit None 如何将曲线拟合到点 PlotFitElements Automatic 在图中显示的拟合元素 PlotInteractivity $PlotInteractivity 是否允许出现互动元素 PlotLegends None 点的图例 PlotRange {Full,Full,Automatic} z 的范围或其它要包含的值 PlotRangePadding Automatic 对数值范围进行多少填充 PlotStyle Automatic 点的样式 PlotTheme $PlotTheme 绘图的整体外观主题 RegionFunction (True&) 如何确定一个点是否应该被包含 RegionBoundaryStyle ![TemplateBox[{Automatic, paclet:ref/Automatic}, RefLink, BaseStyle -> {3ColumnTableMod}] TemplateBox[{Automatic, paclet:ref/Automatic}, RefLink, BaseStyle -> {3ColumnTableMod}]](Files/ListPointPlot3D.zh/1.png)
用于区域的样式 ScalingFunctions None 怎样缩放个别坐标 - 选项设置 Filling->Automatic 显示所有点的茎杆.
- DataRange 确定如何将数值 {{z11, …, z1n},…,{zm1,…,zmn}} {z1q,…,zn} 解释成 {{x11,y11,z11},…,{xmn,ymn,zmn}}. 可能的设置包括:
-
Automatic,All 从 1 到 m 或 n 均匀排列 {{xmin,xmax},{ymin,ymax}} 从 xmin 到 xmax,从 ymin 到 ymax 均匀排列 - 通常情况下列表 {{x1,y1,z1},{x2,y2,z2},…} 被解释成一系列点,但设置 DataRangeAll 会强制将其解释为多个 datai {{z11,z12,z13},{z21,z22,z23},…}.
- PlotLegends 的典型设置包括:
-
None 无图例 Automatic 自动确定图例 {lbl1,lbl2,…} 用 lbl1、lbl2、… 作为图例的标签 Placed[lspec,…] 指定图例的放置 - PlotStylesty 指定每条曲线使用的样式. 可能的设置包括:
-
{sty1,sty2,…} 针对各个数据集的一系列样式 <|"key"val,…|> 针对不同层级的数据的样式元素 - 接受的键有:
-
"Base" 所有 datai 的整体样式 "Lists" 针对每个 datai 的样式列表 styi - ColorData["DefaultPlotColors"] 给出 PlotStyle 使用的默认颜色序列.
- 提供给 ColorFunction 和 RegionFunction 中的函数的参数为 x、y 和 z. 默认情况下,提供给 ColorFunction 中的函数的是经过缩放的参数.
所有选项的列表
范例
打开所有单元 关闭所有单元基本范例 (6)
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}]]data = Flatten[Table[{r Cos[t], r Sin[t], Sinc[r]}, {r, 0, 10, 0.5}, {t, 0, 2Pi, 0.1}], 1];ListPointPlot3D[data]以 Callout 形式添加标签:
ListPointPlot3D[RandomReal[1, {6, 3}] -> RandomWord[6], LabelingFunction -> Callout]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, 3, 0.2}, {j, 0, 3, 0.2}], Filling -> Bottom]ListPointPlot3D[{Table[Sin[j ^ 2 + i], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], Table[Sin[j ^ 2 + i] + 3, {i, 0, 3, 0.1}, {j, 0, 3, 0.1}]}]ListPointPlot3D[Table[Sin[i]Cos[j], {i, -5, 5, .25}, {j, -5, 5, .25}], ColorFunction -> "Rainbow"]范围 (36)
普通数据 (8)
ListPointPlot3D[Table[Sin[j / 3], {i, 20}, {j, 20}]]用 DataRange 提供精确的
和
数据范围:
ListPointPlot3D[Table[Sin[j / 3], {i, 20}, {j, 20}], DataRange -> {{0, 1}, {0, 1}}]ListPointPlot3D[{Table[Sin[j / 3], {i, 20}, {j, 20}], Table[-Sin[j / 3], {i, 20}, {j, 20}]}]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}]]data1 = Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}];
data2 = Table[{i, Cos[i + Pi / 2], Sin[i + Pi / 2]}, {i, 0, 20, .1}];ListPointPlot3D[{data1, data2}]ListPointPlot3D[ReplacePart[Partition[Range[100], 10], {{3, 3} -> None, {5, 7} -> I, {8, 4} -> Missing["NotAvailable"]}], PlotStyle -> PointSize[Large]]ListPointPlot3D[Table[Sqrt[2 - i ^ 2 - j ^ 2], {i, -2, 2, .1}, {j, -2, 2, .1}]]自动选择 PlotRange:
ListPointPlot3D[Table[1 / (x ^ 2 + y ^ 2), {x, -2, 2, 8 / 51}, {y, -2, 2, 8 / 51}]]用 PlotRange 聚焦于感兴趣的区域:
{ListPointPlot3D[Table[x ^ 4 + y ^ 4 - x ^ 2 - y ^ 2 + 1, {x, -2, 2, 0.15}, {y, -2, 2, 0.15}]], ListPointPlot3D[Table[x ^ 4 + y ^ 4 - x ^ 2 - y ^ 2 + 1, {x, -2, 2, 0.15}, {y, -2, 2, 0.15}], PlotRange -> {0, 2}]}用 RegionFunction 来约束表面到不等式给出的区域:
data = Flatten[Table[{x, y, Sin[x ^ 2 + y ^ 2] / (x ^ 2 + y ^ 2)}, {x, -4, 4, 0.2}, {y, -4, 4, 0.2}], 1];//QuietListPointPlot3D[data, PlotRange -> All, RegionFunction -> Function[{x, y, z}, Norm[{x, y}] < 4]]表格数据 (2)
tab = Tabular[IconizedObject[«data»], {"x", "y", "f", "g"}]ListPointPlot3D[tab -> {"x", "y", "f"}]ListPointPlot3D[tab -> {{"x", "y", "f"}, {"x", "y", "g"}}]ListPointPlot3D[tab -> {{"x", "y", "f"}, {"x", "y", "g"}}, PlotLegends -> {"f", "g"}]tab = ResourceData["Sample Tabular Data: Palmer Penguins"]ListPointPlot3D[tab -> {"bill_length", "flipper_length", "body_mass"}]使用 PivotToColumns 为每个物种创建数值的列:
pivot = PivotToColumns[tab, "species" -> "bill_length"]ListPointPlot3D[pivot -> {{"Adelie", "flipper_length", "body_mass"}, {"Gentoo", "flipper_length", "body_mass"}, {"Chinstrap", "flipper_length", "body_mass"}}, AxesLabel -> {"bill length", "flipper length", "body mass"}, PlotLegends -> {"Adelie", "Gentoo", "Chinstrap"}]特殊数据 (6)
用 Quantity 在数据中包含单位:
ListPointPlot3D[Quantity[RandomReal[1, {6, 3}], "Meters"], AxesLabel -> Automatic]绘制 QuantityArray 中的数据:
data = QuantityArray[EntityValue[
EntityClass[
"Star", {EntityProperty["Star", "DistanceFromEarth"] ->
TakeSmallest[25]}], {"Mass", "Radius", "DistanceFromEarth"}]]ListPointPlot3D[data, AxesLabel -> Automatic]用 TargetUnits 指定单位::
ListPointPlot3D[data, TargetUnits -> {"Tons", Automatic, Automatic}, AxesLabel -> Automatic]zvar = Table[Around[Sin[x] Cos[y], 1], {x, -4, 4}, {y, -4, 4}];ListPointPlot3D[zvar]ListPointPlot3D[{{2 -> "a", 3 -> "b", 5 -> "c", 7 -> "d", 11 -> "e", 13 -> "f", 17 -> "g"}}]ListPointPlot3D[{{2, 3, 5, 7, 11, 13, 17} -> {"a", "b", "c", "d", "e", "f", "g"}}]ListPointPlot3D[{{2, 3, 5, 7, 11, 13, 17} -> {"a", "b", "c", "d", "e", "f", "g"}}, LabelingFunction -> Above]绘制 SparseArray 中的数据:
ListPointPlot3D[SparseArray[{{i_, i_} -> -2, {i_, j_} /; Abs[i - j] == 1 -> 1}, {5, 5}]]数据封装 (6)
{ListPointPlot3D[{{{1, 1, 1}, Style[{2, 2, 2}, Red], {3, 3, 3}}, {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, PlotStyle -> PointSize[0.05]], ListPointPlot3D[{Style[{{1, 1, 1}, {2, 2, 2}, {3, 3, 3}}, Green], {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, PlotStyle -> PointSize[0.05]], ListPointPlot3D[Style[{{{1, 1, 1}, {2, 2, 2}, {3, 3, 3}}, {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, Blue], PlotStyle -> PointSize[0.05]]}{ListPointPlot3D[{{{1, 1, 1}, Style[{2, 2, 2}, Red], {3, 3, 3}}, {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, PlotStyle -> PointSize[0.05]], ListPointPlot3D[{Style[{{1, 1, 1}, Style[{2, 2, 2}, Red], {3, 3, 3}}, Green], {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, PlotStyle -> PointSize[0.05]], ListPointPlot3D[Style[{Style[{{1, 1, 1}, Style[{2, 2, 2}, Red], {3, 3, 3}}, Green], {{1, 0, 1}, {2, 1, 2}, {3, 2, 3}}}, Blue], PlotStyle -> PointSize[0.05]]}ListPointPlot3D[Tooltip[RandomReal[1, {10, 3}]]]ListPointPlot3D[Tooltip[RandomReal[1, {10, 3}], "hello"]]ListPointPlot3D[Table[Labeled[RandomReal[1, 3], i], {i, 20}], PlotStyle -> PointSize[Medium], ImageSize -> 300]用 PopupWindow 提供额外的明细信息:
ListPointPlot3D[{{1, 1, 1}, PopupWindow[{2, 2, 2}, DateListPlot[FinancialData["IBM", "Jan. 1, 2004"]]], {3, 3, 3}}, PlotStyle -> PointSize[0.05]]可用 Button 来触发任意操作:
ListPointPlot3D[{{1, 1, 1}, Button[{2, 2, 2}, Speak[2]], {3, 3, 3}}, PlotStyle -> PointSize[0.05]]添加标签与图例 (6)
ListPointPlot3D[Table[Labeled[RandomReal[1, 3], i], {i, 20}], PlotStyle -> PointSize[Medium], ImageSize -> 300]Table[ListPointPlot3D[Table[Labeled[RandomReal[1, 3], i, p], {i, 5}], PlotLabel -> p], {p, {Above, Below, Before, After}}]用 LabelingFunction 指定标签名称:
ListPointPlot3D[RandomReal[1, {10, 3}], LabelingFunction -> (#1[[1]] &)]data = Table[Table[{x, y, f}, {x, 0, 2Pi, 0.1}, {y, 0, 2Pi, 0.1}], {f, {Sin[x + y], Sin[2x + y]}}];ListPointPlot3D[Join@@@data, PlotLegends -> {Sin[x + y], Sin[2x + y]}]用 Legended 为特定数据集提供图例:
{upper, lower, average} = Join@@@Table[Table[{x, y, f}, {x, 0, 2Pi, 0.1}, {y, 0, 2Pi, 0.1}], {f, {Sin[x + y], Sin[-x - y], Sin[x + y] + Sin[-x - y]}}];ListPointPlot3D[{upper, lower, Legended[average, "average"]}]用 Placed 改变图例的位置:
ListPointPlot3D[{upper, lower, Legended[average, Placed["average", Below]]}]data = Table[Labeled[{RandomReal[i], RandomReal[i], RandomReal[i]}, RandomWord[]], {i, 10}];ListPointPlot3D[data, LabelingSize -> 30]ListPointPlot3D[data, LabelingSize -> Full]data = Table[Labeled[{RandomReal[i], RandomReal[i], RandomReal[i]}, i], {i, 200}];ListPointPlot3D[data]ListPointPlot3D[data, ImageSize -> 400]演示 (8)
为点提供一个直接的 PlotStyle:
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -3, 3, 0.05}, {j, -3, 3, 0.05}], PlotStyle -> Directive[Orange, PointSize[Tiny]]]data1 = Table[Sqrt[1 - x ^ 2 - y ^ 2], {x, -1, 1, 0.05}, {y, -1, 1, 0.1}];data2 = Table[-Sqrt[1 - x ^ 2 - y ^ 2], {x, -1, 1, 0.05}, {y, -1, 1, 0.1}];ListPointPlot3D[{data1, data2}, PlotStyle -> {Red, Blue}, BoxRatios -> Automatic, DataRange -> {{-1, 1}, {-1, 1}}]ListPointPlot3D[Table[Sin[i + j ^ 2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], AxesLabel -> {j, i}, PlotLabel -> Sin[i + j ^ 2], PlotStyle -> Purple]ListPointPlot3D[Table[Sin[i + j ^ 2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], ColorFunction -> Function[{x, y, z}, Hue[z]]]为每个点提供一个交互的 Tooltip:
ListPointPlot3D[Tooltip[Table[Sin[i + j ^ 2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}]], PlotStyle -> Darker[Green]]为整个曲线图提供一个交互的 Tooltip:
ListPointPlot3D[Tooltip[Table[Sin[i + j ^ 2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], TraditionalForm@Sin[i + j ^ 2]], PlotStyle -> Darker[Green]]ListPointPlot3D[Table[Sin[i + j ^ 2], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], Filling -> Bottom, FillingStyle -> Directive[Opacity[0.3], Blue], PlotStyle -> Directive[PointSize[Tiny], Red]]ListPointPlot3D[Table[Table[Sin[i + j ^ k], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], {k, {1, 2}}], PlotTheme -> "Business"]ListPointPlot3D[Table[Table[Sin[i + j ^ k], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], {k, {1, 2}}], PlotTheme -> "Marketing"]选项 (83)
Axes (3)
默认情况下绘制 Axes:
ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}]]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> False]{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> {True, False, False}], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> {False, True, False}], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> {False, False, True}]}AxesLabel (4)
ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> True]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> True, AxesLabel -> z]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], Axes -> True, AxesLabel -> {x, y, z}]ListPointPlot3D[Table[{Quantity[i, "Meters"], Quantity[Cos[i], "Meters"], Quantity[Sin[i], "Meters"]}, {i, 0, 20, .1}], Axes -> True, AxesLabel -> Automatic]AxesOrigin (2)
AxesStyle (4)
ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AxesStyle -> Red]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AxesStyle -> {{Thick, Brown}, {Thick, Blue}, {Thick, Green}}]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AxesStyle -> Green, TicksStyle -> Red]ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AxesStyle -> Green, LabelStyle -> Red]ColorFunction (5)
Table[ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> Function[{x, y, z}, Evaluate[f]], PlotLabel -> f], {f, {Hue[x], Hue[y], Hue[z]}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> Function[{x, y, z}, RGBColor[x, y, 0.]]]ColorData 使用预定义彩色倾斜度:
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> (ColorData["Rainbow"][#1]&)]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> "Rainbow"]ColorFunction 比 PlotStyle 具有更高的优先级:
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> "Rainbow", PlotStyle -> Directive[Opacity[.5], Red]]ColorFunctionScaling (2)
data = Flatten[Table[{x, y, Abs[Sin[x + I y]]}, {x, -2Pi, 2Pi, Pi / 5}, {y, -2, 2, 1 / 5}], 1];ListPointPlot3D[data, ColorFunction -> Function[{x, y, z}, Hue@Rescale[Arg[Sin[x + I y]], {-Pi, Pi}]], ColorFunctionScaling -> False]无刻度坐标,取决于 DataRange:
data = Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}];ListPointPlot3D[data, ColorFunction -> Function[{x, y, z}, RGBColor[x, y, 0]], ColorFunctionScaling -> False]ListPointPlot3D[data, ColorFunction -> Function[{x, y, z}, RGBColor[x, y, 0]], ColorFunctionScaling -> False, DataRange -> {{0, 1}, {0, 1}}]DataRange (5)
ListPointPlot3D[Table[Sin[i + j], {i, 0, 2Pi, 0.2}, {j, 0, 2Pi, 0.2}]]ListPointPlot3D[Table[Sin[i + j], {i, 0, 2Pi, 0.2}, {j, 0, 2Pi, 0.2}], DataRange -> {{0, 2Pi}, {0, 2Pi}}]ListPointPlot3D[{Array[Times, {40, 40}], Array[700&, {30, 30}]}, DataRange -> {{0, 1}, {0, 1}}, PlotRange -> All, PlotStyle -> {Red, Blue}]data = Flatten[Table[{i, j, Sin[i + j]}, {j, 0, 2Pi, 0.2}, {i, -3, 3, .5}], 1];ListPointPlot3D[data]data = Table[Sin[i + j], {j, 0, 2Pi, 0.5}, {i, -1, 1}];ListPointPlot3D[data, DataRange -> All]ListPointPlot3D[data]Filling (3)
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.2}, {j, 0, Pi, 0.2}], Filling -> Bottom]沿着被 RegionFunction 切割的区域填充:
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -Pi, Pi, 0.3}, {j, -Pi, Pi, 0.3}], Filling -> Bottom, RegionFunction -> (#1 ^ 2 + #2 ^ 2 < 5&), DataRange -> {{-Pi, Pi}, {-Pi, Pi}}]ListPointPlot3D[Table[Cos[y] + a, {a, {-1, 1}}, {x, 0, 2Pi, .3}, {y, 0, 2Pi, .3}], Filling -> {1 -> {Bottom, Blue}, 2 -> {Top, Red}}]FillingStyle (3)
Table[ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.2}, {j, 0, Pi, 0.2}], Filling -> Bottom, FillingStyle -> fs], {fs, {Directive[Opacity[0.2], Blue], Directive[Red, Dashed]}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.2}, {j, 0, Pi, 0.2}], Filling -> 0, FillingStyle -> {Orange, Blue}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.2}, {j, 0, Pi, 0.2}], Filling -> 0, FillingStyle -> {None, Blue}]ImageSize (7)
使用已命名尺寸,如 Tiny、Small、Medium 和 Large:
{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> Tiny], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> Small]}{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> 150], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> 1.5, ImageSize -> 150]}{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> {Automatic, 150}], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> UpTo[200]], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> 2, ImageSize -> UpTo[200]]}ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> {200, 300}, Background -> StandardYellow]设置 AspectRatioFull 将填充可用空间:
ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> Full, ImageSize -> {200, 300}, Background -> StandardYellow]{ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> {UpTo[150], UpTo[100]}], ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}Framed[Pane[ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], ImageSize -> Full, Background -> StandardYellow], {200, 100}]]Framed[Pane[ListPointPlot3D[Table[{i, Cos[i], Sin[i]}, {i, 0, 20, .1}], AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> StandardYellow], {200, 200}]]IntervalMarkers (2)
zvar = Table[Around[Sin[x] Cos[y], 1], {x, -4, 4}, {y, -4, 4}];ListPointPlot3D[zvar]使用已命名的 IntervalMarkers:
xyzvar = Flatten[
Table[{x, y, Around[Sin[x] Cos[y], 1]}, {x, -4, 4}, {y, -4, 4}], 1];ListPointPlot3D[xyzvar, IntervalMarkers -> "Tubes"]IntervalMarkersStyle (2)
zvar = Table[Around[Sin[x] Cos[y], 1], {x, -4, 4}, {y, -4, 4}];ListPointPlot3D[zvar]xyzvar = Flatten[
Table[{x, y, Around[Sin[x] Cos[y], 1]}, {x, -4, 4}, {y, -4, 4}], 1];ListPointPlot3D[xyzvar, IntervalMarkersStyle -> Red]LabelingSize (3)
ListPointPlot3D[RandomReal[1, {6, 3}] -> {[image], [image], [image] , [image], [image], [image]}, LabelingFunction -> Callout]用 LabelingSize 改变显示出来的标签的大小:
ListPointPlot3D[RandomReal[1, {6, 3}] -> {[image], [image], [image] , [image], [image], [image]}, LabelingFunction -> Callout, LabelingSize -> 20]SeedRandom[1];data = RandomInteger[100, {10, 3}] -> RandomWord[10]ListPointPlot3D[data, LabelingFunction -> Callout]ListPointPlot3D[data, LabelingFunction -> Callout, LabelingSize -> 40]LabelingTarget (7)
ListPointPlot3D[IconizedObject[«data»]]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> All]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> "Dense"]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> 0.25]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> <|"AllowedLabelingPositions" -> "Sides"|>]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> <|"AllowedLabelingPositions" -> "Corners"|>]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> <|"AllowedLabelingPositions" -> {"Right", "Top"}|>]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> <|"AllowedOverlaps" -> {"Points"}|>]ListPointPlot3D[IconizedObject[«data»], LabelingTarget -> <|"AllowLabelClipping" -> True|>]PlotLegends (5)
ListPointPlot3D[{Table[Sin[i + j], {i, 0, 2Pi, 0.2}, {j, 0, 2Pi, 0.2}], Table[Cos[i + j], {i, 0, 2Pi, 0.2}, {j, 0, 2Pi, 0.2}]}]ListPointPlot3D[{Table[Sin[i + j], {i, 0, 10, 0.25}, {j, 0, 10, 0.25}], Table[-Sin[i - j], {i, 0, 10, 0.25}, {j, 0, 10, 0.25}]}, PlotStyle -> {Red, Blue}, PlotLegends -> {Sin[x + y], -Sin[x - y]}]ListPointPlot3D[{Table[Sin[j / 3], {i, 20}, {j, 20}], Table[-Sin[j / 3], {i, 20}, {j, 20}]}, PlotStyle -> {Blue, Orange}, PlotLegends -> Automatic]用 Placed 来指定图例的位置:
Table[ListPointPlot3D[{Table[Sin[j ^ 2 + i], {i, -Pi, Pi, 0.2}, {j, -2, 2, 0.2}], Table[Cos[j ^ 2 + i], {i, -Pi, Pi, 0.2}, {j, -2, 2, 0.2}]}, PlotLegends -> Placed[TraditionalForm /@ {Sin[x ^ 2 + y], Cos[x ^ 2 + y]}, pos], PlotLabel -> pos], {pos, {Above, Below}}]Table[ListPointPlot3D[{Table[Sin[Log[(i + j) ^ 2]], {i, 20}, {j, 20}], Table[Sin[-Log[(i + j) ^ 2]], {i, 20}, {j, 20}]}, PlotLegends -> Placed[{"data 1", "data 2"}, pos], PlotLabel -> pos], {pos, {Above, Below}}]用 BarLegend 自定义图例:
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}], ColorFunction -> (ColorData["Rainbow"][#1]&), PlotLegends -> Placed[BarLegend[{"Rainbow", {-1, 1}}], Below]]PlotRange (3)
ListPointPlot3D[Table[Exp[-x ^ 2 - y ^ 2], {x, -3, 3, .1}, {y, -3, 3, .1}], PlotStyle -> PointSize[Tiny]]ListPointPlot3D[Table[Exp[-x ^ 2 - y ^ 2], {x, -3, 3, .1}, {y, -3, 3, .1}], PlotRange -> All, PlotStyle -> PointSize[Tiny]]ListPointPlot3D[Table[y ^ 2 - x ^ 2, {x, -4, 4, 0.1}, {y, -4, 4, 0.1}], PlotRange -> {-2, 2}]PlotTheme (2)
ListPointPlot3D[Table[Table[Cos[i + j ^ k], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], {k, {1, 2}}], PlotTheme -> "Web"]ListPointPlot3D[Table[Table[Cos[i + j ^ k], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}], {k, {1, 2}}], PlotTheme -> "Web", PlotStyle -> {StandardBlue, StandardGreen}]RegionBoundaryStyle (3)
ListPointPlot3D[Table[Exp[-(i ^ 2 + j ^ 2)], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], DataRange -> {{-2, 2}, {-2, 2}}, PlotStyle -> PointSize[Small], RegionBoundaryStyle -> Automatic]用 None 不绘制区域:
ListPointPlot3D[Table[Exp[-(i ^ 2 + j ^ 2)], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], DataRange -> {{-2, 2}, {-2, 2}}, PlotStyle -> PointSize[Small], RegionBoundaryStyle -> None]使用自定义的 RegionBoundaryStyle:
ListPointPlot3D[Table[Exp[-(i ^ 2 + j ^ 2)], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], DataRange -> {{-2, 2}, {-2, 2}}, PlotStyle -> PointSize[Small], RegionBoundaryStyle -> Directive[Yellow, Opacity[.8]]]RegionFunction (4)
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.05}, {j, 0, Pi, 0.05}], RegionFunction -> Function[{x, y, z}, Abs[z] > 0.5], PlotStyle -> PointSize[Small]]区域取决于 DataRange:
data = Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}];ListPointPlot3D[data, RegionFunction -> Function[{x, y, z}, Norm[{x, y}] < 4]]ListPointPlot3D[data, RegionFunction -> Function[{x, y, z}, Norm[{x, y}] < 4], DataRange -> {{0, Pi}, {0, Pi}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.05}, {j, 0, Pi, 0.05}], RegionFunction -> Function[{x, y, z}, 0 < Mod[x ^ 2 + y ^ 2, 2] < 1], DataRange -> {{0, Pi}, {0, Pi}}, PlotStyle -> PointSize[Small], RegionBoundaryStyle -> None]ListPointPlot3D[Table[Exp[-(i ^ 2 + j ^ 2)], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], DataRange -> {{-2, 2}, {-2, 2}}, PlotStyle -> PointSize[Small]]ScalingFunctions (5)
SeedRandom[1];ListPointPlot3D[RandomChoice[Prime[Range[50]], {20, 3}]]SeedRandom[1];ListPointPlot3D[RandomChoice[Prime[Range[50]], {20, 3}], ScalingFunctions -> "Log"]SeedRandom[1];ListPointPlot3D[RandomChoice[Prime[Range[50]], {20, 3}], ScalingFunctions -> "Reverse"]SeedRandom[1];ListPointPlot3D[RandomChoice[Prime[Range[50]], {20, 3}], ScalingFunctions -> {"Log", "Log", "Reverse"}]SeedRandom[1];ListPointPlot3D[RandomChoice[Prime[Range[50]], {20, 3}], ScalingFunctions -> {None, None, {-Log[#]&, Exp[-#]&}}]Ticks (6)
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}]]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], Ticks -> None]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], Ticks -> {{5, 15, 25}, {5, 15, 25}, {-.9, 0, .9}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], Ticks -> {{{5, a}, {15, b}, {25, c}}, {{5, a}, {15, b}, {25, c}}, {{-.9, -A}, {0, 0}, {.9, A}}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], Ticks -> {{{5, a, .05}, {15, b, .05}, {25, c, .05}}, {{5, a, .01}, {15, b, .01}, {25, c, .01}}, {{-.9, -A, .1}, {0, 0, .1}, {.9, A, .1}}}]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], Ticks -> {{{5, a, .05, Directive[Red]}, {15, b, .05, Directive[Red, Thick]}, {25, c, .05, Directive[Red, Thick, Dashed]}}, {{5, a, .05, Directive[Blue]}, {15, b, .05, Directive[Blue, Thick]}, {25, c, .05, Directive[Blue, Thick, Dashed]}}, {{-.9, -A, .1, Directive[Darker@Yellow, Thick]}, {0, 0, .1, Directive[Darker@Yellow, Thick, Dashed]}, {.9, A, .1, Directive[Darker@Yellow, Thick]}}}]TicksStyle (3)
ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], AxesStyle -> Directive[Thick, Red]]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], TicksStyle -> Directive[Bold, Red]]ListPointPlot3D[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], TicksStyle -> {Directive[Green, Bold], Directive[Bold, Red], Directive[Bold, Blue]}]应用 (1)
points = Reap[NIntegrate[Boole[(x - 1)^2 + z^2 < 1] + Boole[(y - 1)^2 - z^2 < 1], {x, 0, 2}, {y, 0, 2}, {z, 0, 1}, EvaluationMonitor :> Sow[{x, y, z}]]][[2, 1]];ListPointPlot3D[points, BoxRatios -> Automatic, ColorFunction -> "Rainbow", PlotStyle -> PointSize[Small]]属性和关系 (11)
使用 ListPlot 和 ListLinePlot 绘制二维中的高度:
{ListPlot[{1, 3, 4, 2, 7, 5}], ListLinePlot[{1, 3, 4, 2, 7, 5}]}{ListPlot[{{1, 5}, {2, 2}, {3, 9}, {4, 3}, {4, 7}, {5, 7}, {7, 1}, {8, 4}}], ListLinePlot[{{1, 5}, {2, 2}, {3, 9}, {4, 3}, {4, 7}, {5, 7}, {7, 1}, {8, 4}}]}使用 ListLinePlot3D 绘制经过点列表的曲线:
ListLinePlot3D[Table[{Cos[t], Sin[t], Sin[5t]}, {t, 0, 2Pi, 0.1}]]ListLinePlot3D[Table[Sin[j ^ 2 + i], {i, 0, 3, 0.25}, {j, 0, 3, 0.1}]]使用 ListPlot3D 从数据中创建曲面:
ListPlot3D[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}]]使用 Plot3D 可视化函数:
Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}]对对数数据绘图使用 ListLogPlot,ListLogLogPlot,和 ListLogLinearPlot:
ListLogPlot[Table[Binomial[25, k], {k, 0, 25}], Joined -> True]对极坐标图使用 ListPolarPlot:
ListPolarPlot[Table[{x, Sqrt[x]}, {x, 0, 2Pi, 0.1}], Joined -> True]使用 DateListPlot 显示根据时间变化的数据:
DateListPlot[{34, 51, 11, 5, 39, 47, 28, 42, 66, 13, 24, 31}, {2006, 1}, Joined -> True]使用 ListContourPlot 根据连续数据创建等高线:
ListContourPlot[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}]]使用 ListDensityPlot 根据连续数据创建密度图:
ListDensityPlot[Table[Sin[j ^ 2 + i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}]]对离散值数组使用 ArrayPlot 和 MatrixPlot:
ArrayPlot[Table[GCD[i, j], {i, 1, 20}, {j, 1, 20}]]对参数曲线使用 ParametricPlot:
{ParametricPlot[{Cos[θ], Sin[θ]}, {θ, 0, 2Pi}], ListLinePlot[Table[{Cos[θ], Sin[θ]}, {θ, 0, 2Pi, 0.1}], AspectRatio -> 1]}巧妙范例 (2)
ListPointPlot3D[Table[Table[{t, Cos[t + s Pi / 2], Sin[t + s Pi / 2]}, {t, 0, 5Pi, .2}], {s, 4}], BoxRatios -> Automatic]ListPointPlot3D[Table[Table[(4Pi - t){Cos[t + s Pi / 2], Sin[t + s Pi / 2], 0} + {0, 0, 2t}, {t, 0, 4Pi, .1}], {s, 4}], Filling -> Bottom, ColorFunction -> "Rainbow", BoxRatios -> Automatic, FillingStyle -> Directive[LightGreen, Thick, Opacity[.1]]]文本
Wolfram Research (2007),ListPointPlot3D,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ListPointPlot3D.html (更新于 2026 年).
CMS
Wolfram 语言. 2007. "ListPointPlot3D." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2026. https://reference.wolfram.com/language/ref/ListPointPlot3D.html.
APA
Wolfram 语言. (2007). ListPointPlot3D. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ListPointPlot3D.html 年
BibTeX
@misc{reference.wolfram_2026_listpointplot3d, author="Wolfram Research", title="{ListPointPlot3D}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/ListPointPlot3D.html}", note=[Accessed: 12-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_listpointplot3d, organization={Wolfram Research}, title={ListPointPlot3D}, year={2026}, url={https://reference.wolfram.com/language/ref/ListPointPlot3D.html}, note=[Accessed: 12-August-2026]}