バージョン7で,ベクトル場プロットパッケージはWolframシステムに統合された.
新しいシステム関数
VectorFieldPlotが組込みの Mathematica 関数VectorPlotとして利用できるようになった:
Version 6.0
VectorPlot[{Sin[x], Cos[y]}, {x, 0, 2Pi}, {y, 0, 2Pi}]VectorFieldPlot3Dが組込みの Mathematica 関数VectorPlot3Dとして利用できるようになった:
Version 6.0
VectorPlot3D[{x, y, z}, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}]VectorHeadsオプションの代りにVectorPlot3DのVectorStyleオプションが使われるようになった:
Version 6.0
VectorPlot3D[{x, y, z}, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}, VectorStyle -> Arrowheads[0]]VectorFieldPlotおよびVectorFieldPlot3DのColorFunctionオプションの代りに新しいVectorColorFunctionオプションが使われるようになった:
Version 6.0
VectorPlot[{Sin[x], Cos[y]}, {x, 0, 2Pi}, {y, 0, 2Pi}, VectorColorFunction -> Hue]VectorPointsオプションを使って,プロットの中の評価点の数を増やす:
Version 6.0
VectorPlot[{Sin[x], Cos[y]}, {x, 0, 2Pi}, {y, 0, 2Pi}, VectorPoints -> 20]GradientFieldPlot,GradientFieldPlot3D,HamiltonianFieldPlot,PolyaFieldPlotは以下の定義を使って置き換えることができる:
Version 6.0
GradientFieldPlot[f_, {x_, xmin_, xmax_}, {y_, ymin_, ymax_}, opts : OptionsPattern[]] := VectorPlot[Evaluate[D[f, {{x, y}}]], {x, xmin, xmax}, {y, ymin, ymax}, opts]GradientFieldPlot[Sin[x y], {x, 0, 1}, {y, 0, 1}]
Version 6.0
GradientFieldPlot3D[f_, {x_, xmin_, xmax_}, {y_, ymin_, ymax_}, {z_, zmin_, zmax_}, opts : OptionsPattern[]] := VectorPlot3D[Evaluate[D[f, {{x, y, z}}]], {x, xmin, xmax}, {y, ymin, ymax}, {z, zmin, zmax}, opts]GradientFieldPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}]
Version 6.0
HamiltonianFieldPlot[f_, {x_, xmin_, xmax_}, {y_, ymin_, ymax_}, opts : OptionsPattern[]] := VectorPlot[Evaluate@{D[f, {y}], -D[f, {x}]}, {x, xmin, xmax}, {y, ymin, ymax}, opts]HamiltonianFieldPlot[Sin[x y], {x, 0, 2π}, {y, 0, 2π}]
Version 6.0
PolyaFieldPlot[f_, {x_, xmin_, xmax_}, {y_, ymin_, ymax_}, opts : OptionsPattern[]] := VectorPlot[Evaluate@{Re[f], -Im[f]}, {x, xmin, xmax}, {y, ymin, ymax}, VectorScale -> {Automatic, Automatic, Log[#5 + 1]&}, opts]PolyaFieldPlot[Sin[x + I * y], {x, -1, 1}, {y, -1, 1}]