StreamPlot[{vx,vy},{x,xmin,xmax},{y,ymin,ymax}]
生成以 x 和 y 的函数表示的矢量场 {vx,vy} 的流线图.
StreamPlot[{{vx,vy},{wx,wy},…},{x,xmin,xmax},{y,ymin,ymax}]
生成多个向量场图.
StreamPlot[…,{x,y}∈reg]
将变量 {x,y} 视为位于几何区域 reg 中.
StreamPlot
StreamPlot[{vx,vy},{x,xmin,xmax},{y,ymin,ymax}]
生成以 x 和 y 的函数表示的矢量场 {vx,vy} 的流线图.
StreamPlot[{{vx,vy},{wx,wy},…},{x,xmin,xmax},{y,ymin,ymax}]
生成多个向量场图.
StreamPlot[…,{x,y}∈reg]
将变量 {x,y} 视为位于几何区域 reg 中.
更多信息和选项
- StreamPlot 被称为流线图.
- StreamPlot 绘制由
和
定义的流线
,其中
和
是初始流点. 流线
是通过点
的曲线,其切线对应于各点处的矢量场
. - 默认情况下,流线根据矢量场
的大小
着色,并在
值增加的方向上有一个箭头. - StreamPlot 缺省情况下显示足够多的流线,从而使得整个图形的密度大致均匀,且不显示背景标量场.
- StreamPlot 在 vi 计算结果不是实数的地方不绘制流线.
- StreamPlot 将变量 x 和 y 视为局部变量,实际上相当于使用 Block.
- StreamPlot 具有属性 HoldAll,只在将具体的数值赋给 x 和 y 后才计算 vi.
- 某些情况下,在将具体数值赋给 x 和 y 之前,用 Evaluate 以符号方式计算 vi 可能更高效.
- StreamPlot 有和 Graphics 相同的选项,不同之处及更多选项如下所示: [所有选项的列表]
-
AspectRatio 1 高宽比 EvaluationMonitor None 每次运行函数时要计算的表达式 Frame True 是否在绘图周围绘制边框 FrameTicks Automatic 边框的刻度 Method Automatic 绘图使用的方法 PerformanceGoal $PerformanceGoal 优化的目标 PlotLayout Automatic 如何放置场 PlotLegends None 包含的图例 PlotRange {Full,Full} 要包括的 x、y 值的范围 PlotRangePadding Automatic 绘数值范围进行多少填充 PlotTheme $PlotTheme 绘图的整体外观主题 RegionBoundaryStyle Automatic 怎样设计绘图区域的边界的样式 RegionFillingStyle Automatic 怎样设计绘图区域内部的样式 RegionFunction (True&) 确定要包含的区域 ScalingFunctions None 怎样缩放个别坐标 StreamColorFunction Automatic 如何对流线着色 StreamColorFunctionScaling True 是否缩放 StreamColorFunction 的参数 StreamMarkers Automatic 流使用的形状 StreamPoints Automatic 确定流线的数量、位置和密度 StreamScale Automatic 确定流线的尺寸和分段 StreamStyle Automatic 如何绘制流线 WorkingPrecision MachinePrecision 内部计算使用的精度 - 提供给 RegionFunction 和 StreamColorFunction 中的函数的参数为 x、y、vx、vy、Norm[{vx,vy}].
- 可以在多个绘图面板中显示单个流线图的 PlotLayout 的可能设置包括:
-
"Column" 在一列面板中使用分开的流线图 "Row" 在一行面板中使用分开的流线图 {"Column",k},{"Row",k} 使用 k 列或行 {"Column",UpTo[k]},{"Row",UpTo[k]} 使用至多 k 列或行 - ScalingFunctions 的可能设置包括:
-
{sx,sy} 缩放 x 和 y 坐标轴 - 常见的内置缩放函数 s 包括:
-
"Log" 
对数刻度,自动进行标记 "Log10" 
以 10 为底的对数刻度,用 10 的幂进行标记 "SignedLog" 
类似对数的刻度,包含 0 和负数 "Reverse" 
反转坐标的方向 "Infinite" 
无穷刻度
所有选项的列表
范例
打开所有单元 关闭所有单元基本范例 (4)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamScale -> None]StreamPlot[{{x + y, y - x}, {y, x + y}}, {x, -3, 3}, {y, -3, 3}, PlotLayout -> "Row"]范围 (22)
采样 (10)
Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> p, StreamPoints -> p], {p, {Coarse, Medium, Automatic, Fine}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> Tuples[{-2, 0, 2}, 2], Epilog -> Point[Tuples[{-2, 0, 2}, 2]]]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None, StreamPoints -> {{{{1, 0}, Red}, {{-1, -1}, Green}, Automatic}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, vx, vy, n}, x y < 0]]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 5]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> {{2, 4, 5}}]在将具体数值赋给变量之前,使用 Evaluate 对矢量场进行符号式计算:
StreamPlot[Evaluate[D[Sin[x y], {{x, y}}]], {x, 0, 1}, {y, 0, 1}]StreamPlot[{y, -x}, {x, y}∈Disk[]]定义域可以由 MeshRegion 来指定:
𝒟 = MeshRegion[{{0, 0}, {5, -2}, {3, 0}, {5, 2}}, Polygon[{1, 2, 3, 4}]];StreamPlot[{Sin[x], Cos[y]}, {x, y}∈𝒟]演示 (12)
通过设置 StreamScale 指定不同的虚线和箭头:
Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> ToString@s, StreamScale -> s], {s, {Automatic, None, Full}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Automatic]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Full, StreamStyle -> s], {s, {"Toothpick", "Dart", Directive[Orange, Dashed], Arrowheads[{{0.03, Automatic, Graphics[Circle[]]}}]}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotTheme -> "Scientific"]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotTheme -> "Scientific", StreamColorFunction -> None, StreamStyle -> StandardBlue]StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, StreamMarkers -> "Drop"]StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, StreamMarkers -> "Drop", StreamColorFunction -> None, StreamStyle -> Red]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> {{{2, Thick}, {4, Green}, {5, {Thick, Red, Dashed}}}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshStyle -> s], {s, {Red, Thick, Directive[Red, Dashed]}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshShading -> {Red, Yellow, Green, None}]regionFn = Function[{x, y, vx, vy, n}, 4 < n < 6 || 0 < n < 2];Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn, RegionBoundaryStyle -> b], {b, {Red, Thick, Directive[Red, Dashed]}}]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLayout -> "Row"]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLayout -> "Column"]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic, StreamColorFunction -> None]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None, PlotLegends -> "Expressions"]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None, PlotLegends -> {"radial", "angular"}]StreamPlot[{x, y}, {x, 1, 100}, {y, 1, 10}, ScalingFunctions -> {"Log", None}]StreamPlot[{x, y}, {x, 1, 100}, {y, 1, 100}, ScalingFunctions -> {None, "Reverse"}]选项 (97)
AspectRatio (3)
默认情况下,StreamPlot 使用相同的宽和高:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -2, 2}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -2, 2}, AspectRatio -> 1 / 2]AspectRatioAutomatic 根据绘图范围确定高宽比:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -2, 2}, AspectRatio -> Automatic]Axes (4)
默认情况下,StreamPlot 使用边框而非坐标轴:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True]用 AxesOrigin 指定轴相交的位置:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesOrigin -> {1, 1}]{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> {True, False}], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> {False, True}]}AxesLabel (3)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesLabel -> y]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesLabel -> {x, y}]AxesOrigin (2)
AxesStyle (4)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesStyle -> Red]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesStyle -> {Red, Blue}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesStyle -> Green, TicksStyle -> StandardGray]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, Frame -> False, Axes -> True, AxesStyle -> Green, LabelStyle -> Red]Background (1)
EvaluationMonitor (2)
ListPlot[Reap[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, EvaluationMonitor :> Sow[{x, y}]]][[-1, 1]]]Block[{k = 0}, StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, EvaluationMonitor :> k++];k]ImageSize (5)
使用有名称的尺寸,如 Tiny、Small、Medium 和 Large:
{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> Tiny], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> Small]}{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> 150], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, AspectRatio -> 1.5, ImageSize -> 150]}{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> {Automatic, 150}], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> UpTo[200]], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, AspectRatio -> 2, ImageSize -> UpTo[200]]}StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> {300, 200}, Background -> StandardGray]{StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, ImageSize -> {UpTo[150], UpTo[100]}], StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -2, 2}, {y, -3, 3}, AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}Mesh (5)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> None]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> All]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 5]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> {{2, 4, 5}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> {{{2, Thick}, {4, Green}, {5, {Thick, Red, Dashed}}}}]MeshFunctions (3)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, MeshFunctions -> Function[{x, y, vx, vy, n}, n], Mesh -> 5]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, MeshFunctions -> Function[{x, y, vx, vy, n}, x], Mesh -> 5]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, MeshFunctions -> Function[{x, y, vx, vy, n}, Sqrt[x ^ 2 + y ^ 2]], Mesh -> 5]MeshShading (3)
使用 None 以删除区域:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshShading -> {Red, None}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshShading -> {Red, Yellow, Green, None}]周期性使用 ColorData 中的索引式颜色:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshShading -> ColorData[51, "ColorList"]]MeshStyle (1)
PerformanceGoal (2)
PlotLayout (2)
StreamPlot[{{y, -x}, {x, y}}, {x, -3, 3}, {y, -3, 3}, ImageSize -> Medium, PlotLayout -> "Column"]StreamPlot[{{y, -x}, {x, y}}, {x, -3, 3}, {y, -3, 3}, ImageSize -> Medium, PlotLayout -> "Row"]StreamPlot[{{y, -x}, {x, y}, {y, x + y}, {x, x - y}}, {x, -3, 3}, {y, -3, 3}, ImageSize -> Medium, PlotLayout -> {"Column", 2}]StreamPlot[{{y, -x}, {x, y}, {y, x + y}, {x, x - y}, {x + y, x}, {y - x, x + y}}, {x, -3, 3}, {y, -3, 3}, ImageSize -> Medium, PlotLayout -> {"Column", UpTo[4]}]StreamPlot[{{y, -x}, {x, y}, {y, x + y}, {x, x - y}, {x + y, x}, {y - x, x + y}}, {x, -3, 3}, {y, -3, 3}, ImageSize -> Medium, PlotLayout -> {"Column", 4}]PlotLegends (6)
StreamPlot[{y, Exp[-x]}, {x, -3, 3}, {y, -3, 3}]StreamPlot[{y, Exp[-x]}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic]StreamPlot[{y, Exp[-x]}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Placed[Automatic, Below]]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> {"one", "two"}, StreamColorFunction -> None]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> "Expressions", StreamColorFunction -> None]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic, StreamColorFunction -> None]StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None, StreamStyle -> {Red, Blue}, PlotLegends -> SwatchLegend["Expressions", LegendMarkerSize -> {40, 10}]]PlotRange (5)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotRange -> Full]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotRange -> 2]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotRange -> {{0, Full}, Automatic}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotRange -> {Full, {0, 2}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotRange -> {{-2, 1.5}, {-1, 2}}]PlotTheme (2)
StreamPlot[{Cos[x], Sin[y]}, {x, -3, 3}, {y, -3, 3}, PlotTheme -> "Web"]StreamPlot[{{Cos[x], Sin[y]}, {-Sin[y], Cos[x]}}, {x, -3, 3}, {y, -3, 3}, PlotTheme -> "Detailed"]StreamPlot[{{Cos[x], Sin[y]}, {-Sin[y], Cos[x]}}, {x, -3, 3}, {y, -3, 3}, PlotTheme -> "Detailed", StreamStyle -> {Red, Blue}, StreamColorFunction -> None]RegionBoundaryStyle (2)
regionFn = Function[{x, y, vx, vy, n}, 4 < n < 6 || 0 < n < 2];StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn, RegionBoundaryStyle -> None, RegionFillingStyle -> None]regionFn = Function[{x, y, vx, vy, n}, 4 < n < 6 || 0 < n < 2];Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn, RegionBoundaryStyle -> b], {b, {Red, Thick, Directive[Red, Dashed]}}]RegionFillingStyle (1)
regionFn = Function[{x, y, vx, vy, n}, 4 < n < 6 || 0 < n < 2];StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> regionFn, RegionFillingStyle -> None]RegionFunction (3)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, vx, vy, n}, x y < 0]]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, vx, vy, n}, n < 6]]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, RegionFunction -> Function[{x, y, vx, vy, n}, 3 < n < 6 || 0 < n < 2]]ScalingFunctions (2)
StreamColorFunction (5)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]使用 ColorData 中任何命名的颜色梯度:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> "Rainbow"]对于预定义的颜色梯度,使用 ColorData:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[{x, y, vx, vy, n}, ColorData["AvocadoColors"][x y]]]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[{x, y, vx, vy, n}, Blend[{Blue, Red}, x]]]使用 StreamColorFunctionScaling->False 得到尺度未调整的值:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunctionScaling -> False, StreamColorFunction -> Function[{x, y, vx, vy, n}, ColorData[22][Round[n]]]]StreamColorFunctionScaling (4)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[{x, y, vx, vy, n}, Blend[{Blue, Red}, x]]]使用 StreamColorFunctionScaling->False 得到尺度未调整的值:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunctionScaling -> False, StreamColorFunction -> Function[{x, y, vx, vy, n}, ColorData[22][Round[n]]]]在
方向使用尺度未调整的坐标, 在
方向使用尺度调整的坐标:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[{x, y, vx, vy, n}, Hue[x, y, 1]], StreamColorFunctionScaling -> {False, True}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[{x, y, vx, vy, n}, Hue[n, y, 1]], StreamColorFunctionScaling -> {True, True, True, True, False}]StreamMarkers (7)
StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}]StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, StreamMarkers -> "Drop"]StreamPlot[{{y, -x}, {x, y}}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Large, StreamPoints -> Coarse, StreamMarkers -> {"Drop", "Dart"}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> s, StreamScale -> {Full, All, 0.05}, StreamMarkers -> s], {s, {"Arrow", "ArrowArrow", "CircleArrow"}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> s, StreamScale -> {Full, All, 0.03}, StreamMarkers -> s], {s, {"BarDot", "Dot", "DotArrow", "DotDot"}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> s, StreamScale -> {Full, All, 0.03}, StreamMarkers -> s], {s, {"Drop", "BackwardPointer", "Pointer", "Toothpick"}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> s, StreamScale -> {Full, All, 0.03}, StreamMarkers -> s], {s, {"Dart", "PinDart", "DoubleDart"}}]StreamPoints (6)
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> 10]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> p, PlotLabel -> p], {p, {Automatic, Coarse, Fine}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> None, StreamPoints -> {{{{1, 0}, Red}, {{-1, -1}, Green}, Automatic}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> d, StreamPoints -> {Automatic, d}], {d, {Automatic, 1, Scaled[0.05]}}]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> d, StreamPoints -> {Automatic, d}], {d, {Automatic, {Scaled[0.1], Scaled[0.5]}}}]points = Tuples[{-2, 0, 2}, 2]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> {points, Automatic, maxlen}, Epilog -> Point[points]], {maxlen, {2.5, Scaled[0.2]}}]StreamScale (9)
StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamPoints -> 10, StreamScale -> Full]StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamPoints -> 10, StreamScale -> None]Table[StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, PlotLabel -> s, StreamScale -> s], {s, {Tiny, Large}}]Table[StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, PlotLabel -> s, StreamScale -> s], {s, {0.1, 0.2, 0.4}}]StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamScale -> {{0.1, 0.1}, Automatic}]Table[StreamPlot[{y, -x}, {x, -Pi, Pi}, {y, -Pi, Pi}, PlotLabel -> n, StreamScale -> {Full, n}], {n, {12, 24, All}}]Table[StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamPoints -> 10, PlotLabel -> a, StreamScale -> {Automatic, Automatic, a}], {a, {.02, .04}}]Table[StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamPoints -> 10, PlotLabel -> a, StreamScale -> {Automatic, Automatic, a}], {a, {Scaled[0.5], Scaled[1], Scaled[1.5]}}]StreamPlot[{Sin[x], Cos[y]}, {x, -Pi, Pi}, {y, -Pi, Pi}, StreamScale -> {Automatic, 2, Automatic, Function[{x, y, vx, vy, n}, y]}]StreamStyle (5)
StreamColorFunction 的优先级高于在 StreamStyle 中指定的颜色;
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamStyle -> Orange]设置 StreamColorFunctionNone 以使用 StreamStyle 指定颜色:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamStyle -> Orange, StreamColorFunction -> None]Table[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Full, StreamStyle -> s, StreamColorFunction -> None], {s, {Orange, Thick, Directive[Orange, Dashed]}}]StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Full, StreamStyle -> Arrowheads[{{0.03, Automatic, Graphics[Circle[]]}}]]StreamPlot[{{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {-(1 + x - y ^ 2), -1 - x ^ 2 + y}}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> 30, StreamStyle -> {Red, Blue}, StreamColorFunction -> None]应用 (16)
StreamPlot[Evaluate[D[Sin[x y], {{x, y}}]], {x, 0, 1}, {y, 0, 1}, StreamScale -> Large]StreamPlot[Evaluate@{D[Sin[x y], {y}], -D[Sin[x y], {x}]}, {x, 0, 2Pi}, {y, 0, 2Pi}, StreamScale -> Large]StreamPlot[{y, -y + x - x ^ 3}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Large]fields = | | |
| ---------------------------- | --------------------------------------------------- |
| "positive invariant set" | {y, -x + y(1 - x ^ 2 - 2y ^ 2)} |
| "structurally stable system" | {2x + y - x(x ^ 2 + y ^ 2), -y - y(x ^ 2 + y ^ 2)} |
| "transcritical bifurcation" | {x ^ 2, -y} |
| "reaction-diffusion" | {2(y - x) + x(1 - x ^ 2), -2(y - x) + y(1 - y ^ 2)} |
| "Duffing's equation" | {y, x - x ^ 3} |;fieldIcon[f_] := Image[StreamPlot[f, {x, -3, 3}, {y, -3, 3}, Axes -> False, Frame -> False, StreamPoints -> 20, StreamStyle -> Thick], ImageSize -> 40]TabView[Table[Tooltip[fieldIcon[f[[2]]], f[[1]]] -> StreamPlot[f[[2]], {x, -3, 3}, {y, -3, 3}, StreamScale -> 0.2, PlotLabel -> TraditionalForm[Column@f[[2]]]], {f, fields}]]p[x_, y_] := 169(x - 1) ^ 2 - 16(y - 1) ^ 2 - 153;
q[x_, y_] := 144(x - 1) ^ 2 - 9(y - 1) ^ 2 - 135;With[{λ = 0.8}, StreamPlot[Evaluate@{p[x, y]Cos[λ] - q[x, y]Sin[λ], p[x, y]Sin[λ] + q[x, y]Cos[λ]}, {x, -1, 3}, {y, -1, 3}, StreamScale -> Large, PlotLabel -> Row[{"λ = ", λ}]]]Table[StreamPlot[{y, -x + λ(1 - x ^ 2)y}, {x, -3, 3}, {y, -3, 3}, PlotLabel -> Row[{"λ = ", λ}], StreamScale -> Large], {λ, {-1, 0, 1, 5}}]Manipulate[Row[{Text["m"] == MatrixForm[m], StreamPlot[Evaluate[m.{x, y}], {x, -1, 1}, {y, -1, 1}, StreamScale -> Large, ImageSize -> Small]}], {{m, (| | |
| - | - |
| 1 | 0 |
| 0 | 2 |)}, {(| | |
| - | - |
| 1 | 0 |
| 0 | 2 |) -> "Nodal source", (| | |
| - | - |
| 1 | 1 |
| 0 | 1 |) -> "Degenerate source", (| | |
| -- | - |
| 0 | 1 |
| -1 | 1 |) -> "Spiral source", (| | |
| -- | -- |
| -1 | 0 |
| 0 | -2 |) -> "Nodal sink", (| | |
| -- | -- |
| -1 | 1 |
| 0 | -1 |) -> "Degenerate sink", (| | |
| -- | -- |
| 0 | 1 |
| -1 | -1 |) -> "Spiral sink", (| | |
| -- | - |
| 0 | 1 |
| -1 | 0 |) -> "Center", (| | |
| - | -- |
| 1 | 0 |
| 0 | -2 |) -> "Saddle"}}]Manipulate[
splot = StreamPlot[{y, -Sin[x] - .25 y}, {x, -4, 4}, {y, -3, 3}];
Dynamic[Show[splot,
ParametricPlot[Evaluate[First[{x[t], y[t]} /. NDSolve[{x'[t] == y[t], y'[t] == -Sin[x[t]] - .25y[t], Thread[{x[0], y[0]} == point]}, {x, y}, {t, 0, T}]]], {t, 0, T}, PlotStyle -> Red]]],
{{T, 10}, 1, 100}, {{point, {1, 0}}, Locator}]f1[x_, y_] := {y, λ1 + λ2 x + y ^ 2 + x y};Grid@Table[StreamPlot[Evaluate@f1[x, y], {x, -3, 3}, {y, -3, 3}, StreamScale -> Large, PlotLabel -> Row[{"λ1 = ", λ1, " λ2 = ", λ2}]], {λ1, {-1, 0, 1}}, {λ2, {-1, 0, 1}}]Manipulate[StreamPlot[{y, (Cos[x] - λ)Sin[x]}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Large, PlotLabel -> Row[{"λ = ", λ}]], {λ, -5, 5}]Manipulate[StreamPlot[{y, -λ - μ x + x ^ 3}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Large, PlotLabel -> Row[{"λ = ", λ, " , μ = ", μ}]], {λ, -1, 1}, {μ, -1, 1}]labeledImage[g_, λ_] := Row[{Image[g, ImageSize -> 175], Row[{" λ = ", λ}]}]options = {StreamScale -> Large, StreamStyle -> "BackwardPointer"};g = Table[labeledImage[StreamPlot[{-(x Sin[λ] + y Cos[λ]) + (1 - x ^ 2 - y ^ 2) ^ 2(x Cos[λ] - y Sin[λ]), (x Cos[λ] - y Sin[λ]) + (1 - x ^ 2 - y ^ 2) ^ 2(x Sin[λ] + y Cos[λ])}, {x, -3, 3}, {y, -3, 3}, Evaluate@options], λ], {λ, 0, 2π, π / 16}];对栅格化流图列表而不是原始向量图形进行动画处理可能会减少内存使用量:
ListAnimate[g]frames = Table[Image[StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamScale -> 0.06, StreamColorFunction -> (Hue[k + #5]&)], ImageSize -> 175], {k, 0, 1, 0.1}];ListAnimate[frames]fields = {{x + y ^ 2 + y ^ 3, -x + y + y x ^ 2}, {x - x y ^ 2 + y ^ 3, 3y - y x ^ 2 + x ^ 3}, {(2 - x - 2y)x, (2 - 2x - y)y}, {y, (1 - x ^ 2 - y ^ 2)y / 20 - x}, {2 x y, 1 + x ^ 2 - y ^ 2}, {y, x - x ^ 2 + (1 + x)y}};styles = {"Arrow", "ArrowArrow", "CircleArrow", "BarDot", "Dot", "DotDot", "DotArrow", "Dart", "Drop", "BackwardPointer", "Pointer", "Toothpick", "Dart", "PinDart", "DoubleDart", "Segment", "Line"};icons = Table[f -> Image[StreamPlot[f, {x, -3, 3}, {y, -3, 3}, Axes -> False, Frame -> False, StreamPoints -> 20, StreamStyle -> "Line"], ImageSize -> 42], {f, fields}];Manipulate[StreamPlot[field, {x, -3, 3}, {y, -3, 3}, ImageSize -> 300, StreamStyle -> style, StreamScale -> scale, StreamColorFunction -> color], {style, styles}, {color, ColorData["Gradients"]}, {{scale, 0.2}, 0.05, 0.5, 0.05}, {{field, icons[[1, 1]]}, icons, Setter}]values = {-1, 0, 1};plots = MapIndexed[Function[{λ, i}, StreamPlot[{y, λ - x ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamPoints -> 16, StreamScale -> 0.07, StreamColorFunction -> None, StreamStyle -> ColorData["SolarColors"][0.3i[[1]]]]], values]stackPlots[plots2D : {__Graphics}, dh_, o : OptionsPattern[Graphics3D]] := Graphics3D[MapIndexed[Function[{g, index}, g[[1]] /. Arrow[v2d_] :> Arrow[v2d /. {x_ ? NumericQ, y_ ? NumericQ} :> {x, y, dh index[[1]]}]], plots2D], o]plotSpacing = 5;
stackPlots[plots, plotSpacing, Axes -> True, Boxed -> False, Ticks -> {Automatic, Automatic, MapIndexed[{plotSpacing#2[[1]], Row[{"λ = ", #1}]}&, values]}]Ω = RegionUnion[Rectangle[{0, 0.01}, {0.02, 0.02}], Rectangle[{0.02, 0}, {0.08, 0.03}], Rectangle[{0.08, 0}, {0.1, 0.01}], Rectangle[{0.08, .02}, {0.1, 0.03}]];
RegionPlot[Ω, AspectRatio -> Automatic]inflowBC = DirichletCondition[{u[x, y] == 4000(y - 0.01)(0.02 - y), v[x, y] == 0}, x == 0];outflowBC = DirichletCondition[p[x, y] == 0, x == 0.1];wallBC = DirichletCondition[{u[x, y] == 0, v[x, y] == 0}, 0 < x < 0.1];bcs = {inflowBC, outflowBC, wallBC};navierstokes = {
Inactive[Div][(-μ Inactive[Grad][u[x, y], {x, y}]), {x, y}] + ρ {u[x, y], v[x, y]}.Inactive[Grad][u[x, y], {x, y}] + p^(1, 0)[x, y] == 0,
Inactive[Div][(-μ Inactive[Grad][v[x, y], {x, y}]), {x, y}] + ρ {u[x, y], v[x, y]}.Inactive[Grad][v[x, y], {x, y}] + p^(0, 1)[x, y] == 0,
u^(1, 0)[x, y] + v^(0, 1)[x, y] == 0} /. {ρ -> 1, μ -> 2 10^-5};{uVel, vVel, pressure} = NDSolveValue[{navierstokes, bcs}, {u, v, p}, {x, y}∈Ω, Method -> {"FiniteElement", "InterpolationOrder" -> {u -> 2, v -> 2, p -> 1}, "MeshOptions" -> {"MaxCellMeasure" -> 0.00000025}}];使用 DensityPlot 绘制压强,使用 StreamPlot 绘制流体:
Show[
DensityPlot[pressure[x, y], {x, y}∈uVel["ElementMesh"], PlotRange -> All, Frame -> None, Axes -> None, AspectRatio -> Automatic, ColorFunction -> "DeepSeaColors", PlotLegends -> Placed[BarLegend[Automatic, LegendLabel -> Placed["pressure", Above]], Above]], StreamPlot[{uVel[x, y], vVel[x, y]}, {x, y}∈Ω, AspectRatio -> Automatic, StreamColorFunction -> "SolarColors", PlotLegends -> BarLegend[Automatic, LegendLabel -> Placed["speed", Below]], StreamPoints -> Fine], ImageSize -> Medium
]属性和关系 (11)
使用 ListStreamPlot 绘制数据:
data = Table[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3, 0.2}, {y, -3, 3, 0.2}];ListStreamPlot[data]VectorPlot 用向量而非流线进行绘图:
VectorPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]使用 ListVectorPlot 根据数据生成图:
data = Table[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3, 0.1}, {y, -3, 3, 0.1}];ListVectorPlot[data]使用 StreamPlot3D 绘制三维向量场的流线:
StreamPlot3D[{z, -x, y}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]ListStreamPlot3D 根据数据绘制流线:
data = Table[{z, -x, y}, {x, -1, 1, 0.1}, {y, -1, 1, 0.1}, {z, -1, 1, 0.1}];ListStreamPlot3D[data]使用 StreamDensityPlot 添加标量场的密度图:
StreamDensityPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]用 VectorDensityPlot 绘制向量而非流线:
VectorDensityPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]使用 ListStreamDensityPlot 根据数据生成图:
data = Table[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3, 0.1}, {y, -3, 3, 0.1}];ListStreamDensityPlot[data]使用 ListVectorDensityPlot 绘制箭头而非流线:
ListVectorDensityPlot[data]使用 LineIntegralConvolutionPlot 绘制一个矢量场的线积分卷积:
LineIntegralConvolutionPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}]使用 VectorDisplacementPlot 可视化与位移向量场相关的区域的变形:
VectorDisplacementPlot[{y, x - x^3}, {x, y}∈Disk[], VectorPoints -> Automatic]使用 ListVectorDisplacementPlot 根据数据可视化相同的变形:
data = Table[{{x, y} = RandomReal[{-1, 1}, {2}], {y, x - x ^ 3}}, {300}];ListVectorDisplacementPlot[data, Disk[], VectorPoints -> Automatic]使用 VectorPlot3D 实现三维矢量场的可视化:
VectorPlot3D[{x, y, z}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]使用 ListVectorPlot3D 根据数据生成图:
data = Table[{x, y, z}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}];ListVectorPlot3D[data]用 SliceVectorPlot3D 沿曲面绘制向量:
SliceVectorPlot3D[{-y, x, z}, "CenterSphere", {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]data = Table[{-y, x, z}, {x, -1, 1, 0.1}, {y, -1, 1, 0.1}, {z, -1, 1, 0.1}];ListSliceVectorPlot3D[data, "CenterSphere"]使用 VectorDisplacementPlot3D 可视化与位移向量场相关的三维区域的变形:
VectorDisplacementPlot3D[{y, x, -z}, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}, VectorPoints -> "Boundary"]使用 ListVectorDisplacementPlot3D 根据数据可视化相同的变形:
data = Table[{{x, y, z} = RandomReal[{0, 1}, {3}], {y, x, -z}}, {300}];ListVectorDisplacementPlot3D[data, Cuboid[], VectorPoints -> "Boundary"]ComplexStreamPlot[z^2, {z, 2}]ComplexVectorPlot[z^2, {z, 2}]用 GeoVectorPlot 在地图上绘制向量:
GeoVectorPlot[GeoVector[GeoPosition[{{-54.79801473961214, -111.85053058521567},
{-65.56940402358214, 162.89657500795147}, {-81.67990688759895, -93.36222177594851},
{7.785750774919734, 95.44840765141487}, {-6.86571958448036, -40.946398330539864},
{ ... 904, "AngularDegrees"]},
{0.9366099079317551, Quantity[357.70482317743733, "AngularDegrees"]},
{0.8256817194791912, Quantity[242.07227508889662, "AngularDegrees"]},
{0.2661401145642981, Quantity[152.90003252279325, "AngularDegrees"]}}]]使用 GeoStreamPlot 绘制流线而非矢量:
GeoStreamPlot[GeoVector[GeoPosition[{{-54.79801473961214, -111.85053058521567},
{-65.56940402358214, 162.89657500795147}, {-81.67990688759895, -93.36222177594851},
{7.785750774919734, 95.44840765141487}, {-6.86571958448036, -40.946398330539864},
{ ... 904, "AngularDegrees"]},
{0.9366099079317551, Quantity[357.70482317743733, "AngularDegrees"]},
{0.8256817194791912, Quantity[242.07227508889662, "AngularDegrees"]},
{0.2661401145642981, Quantity[152.90003252279325, "AngularDegrees"]}}]]文本
Wolfram Research (2008),StreamPlot,Wolfram 语言函数,https://reference.wolfram.com/language/ref/StreamPlot.html (更新于 2022 年).
CMS
Wolfram 语言. 2008. "StreamPlot." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/StreamPlot.html.
APA
Wolfram 语言. (2008). StreamPlot. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/StreamPlot.html 年
BibTeX
@misc{reference.wolfram_2026_streamplot, author="Wolfram Research", title="{StreamPlot}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/StreamPlot.html}", note=[Accessed: 05-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_streamplot, organization={Wolfram Research}, title={StreamPlot}, year={2022}, url={https://reference.wolfram.com/language/ref/StreamPlot.html}, note=[Accessed: 05-December-2026]}