Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Vector Field Plotting Package >

GradientFieldPlot3D

GradientFieldPlot3D[f, {x, xmin, xmax}, {y, ymin, ymax}, {z, zmin, zmax}]
generates a three-dimensional plot of the gradient vector field of the scalar function f as a function of x, y and z.
GradientFieldPlot3D[f, {x, xmin, xmax, dx}, {y, ymin, ymax, dy}, {z, zmin, zmax, dz}]
uses steps dx, dy and dz in variables x, y and z respectively.
  • GradientFieldPlot3D has the same options as Graphics3D, with the following additions and changes:
ScaleFactorAutomaticthe scale of the vectors to the mesh; Max ensures that the largest vector fits in the mesh
ScaleFunctionNonefunction to rescale the length of vectors
MaxArrowLengthNonedetermines the largest vector to be drawn
ColorFunctionNonethe colors to use
VectorHeadsFalsewhether to draw vectors with heads
PlotPoints7number of evalution points in each direction
Needs["VectorFieldPlots`"]
Gradient field of x^2+y^2-z^2 over the unit cube:
In[2]:=
Click for copyable input
Out[2]=
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team