ScaleFunction
is an option for the vector field visualization functions that rescales each vector to a length determined by applying a pure function to the current length of that vector.
ScaleFunction
ScaleFunction
is an option for the vector field visualization functions that rescales each vector to a length determined by applying a pure function to the current length of that vector.
Details and Options
- To use ScaleFunction, you first need to load the Vector Field Plotting Package using Needs["VectorFieldPlots`"].
- ScaleFunction will ignore vectors of zero magnitude.
- ScaleFunction is applied before ScaleFactor and MaxArrowLength.
Examples
Basic Examples (1)
Needs["VectorFieldPlots`"]With no scaling, the vectors have exponential lengths:
VectorFieldPlot[{Exp[x], Exp[y]}, {x, 0, 1}, {y, 0, 1}, ScaleFactor -> None]Scale the vectors logarithmically:
VectorFieldPlot[{Exp[x], Exp[y]}, {x, 0, 1}, {y, 0, 1}, ScaleFunction -> Log, ScaleFactor -> None]See Also
Related Guides
Text
Wolfram Research (2007), ScaleFunction, Wolfram Language function, https://reference.wolfram.com/language/VectorFieldPlots/ref/ScaleFunction.html.
CMS
Wolfram Language. 2007. "ScaleFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/VectorFieldPlots/ref/ScaleFunction.html.
APA
Wolfram Language. (2007). ScaleFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/VectorFieldPlots/ref/ScaleFunction.html
BibTeX
@misc{reference.wolfram_2026_scalefunction, author="Wolfram Research", title="{ScaleFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/VectorFieldPlots/ref/ScaleFunction.html}", note=[Accessed: 16-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_scalefunction, organization={Wolfram Research}, title={ScaleFunction}, year={2007}, url={https://reference.wolfram.com/language/VectorFieldPlots/ref/ScaleFunction.html}, note=[Accessed: 16-June-2026]}