is an option for VectorPlot and related functions that specifies the range of vector magnitudes to include in a plot.
VectorRange
is an option for VectorPlot and related functions that specifies the range of vector magnitudes to include in a plot.
Details
- The following settings can be given for VectorRange:
-
Automatic automatically determine the vectors to include All include all vectors {min,max} include vectors whose magnitudes are between min and max - With the Automatic setting, the distribution of vector magnitudes is found, and any vectors sufficiently far out in the distribution are clipped.
- The appearance of clipped vectors depends on ClippingStyle.
Examples
open all close allBasic Examples (4)
The range of vector magnitudes shown is automatically chosen:
VectorPlot[({x, y}/Norm[{x, y}]^3), {x, -1, 1}, {y, -1, 1}]Omit vectors with magnitudes outside the computed range:
VectorPlot[({x, y}/Norm[{x, y}]^3), {x, -1, 1}, {y, -1, 1}, ClippingStyle -> None]Specify a style to use for clipped vectors:
VectorPlot[({x, y}/Norm[{x, y}]^3), {x, -1, 1}, {y, -1, 1}, ClippingStyle -> Gray]Show the full range of magnitudes:
VectorPlot[({x, y}/Norm[{x, y}]^3), {x, -1, 1}, {y, -1, 1}, VectorRange -> All]Scope (4)
Specify the range of vector norms to be plotted:
VectorPlot[({x, y}/Norm[{x, y}]^3), {x, -1, 1}, {y, -1, 1}, VectorRange -> {0, 100}]The vectors only change style between the circles where the norms are in the specified range:
VectorPlot[{x, y}, {x, -3, 3}, {y, -3, 3}, VectorRange -> {1, 3}, Epilog -> {{Red, Circle[]}, {Green, Circle[{0, 0}, 3]}}]Remove the vectors outside of the vector range:
VectorPlot[{x, y}, {x, -3, 3}, {y, -3, 3}, VectorRange -> {1, 3}, ClippingStyle -> None]Specify a color to use for out-of-range vectors:
VectorPlot[{x, y}, {x, -3, 3}, {y, -3, 3}, VectorRange -> {1, 3}, ClippingStyle -> Green]Use red for vectors that are too small and green for those that are too large:
VectorPlot[{x, y}, {x, -3, 3}, {y, -3, 3}, VectorRange -> {1, 3}, ClippingStyle -> {Red, Green}]Related Guides
History
Text
Wolfram Research (2020), VectorRange, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorRange.html.
CMS
Wolfram Language. 2020. "VectorRange." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VectorRange.html.
APA
Wolfram Language. (2020). VectorRange. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VectorRange.html
BibTeX
@misc{reference.wolfram_2026_vectorrange, author="Wolfram Research", title="{VectorRange}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/VectorRange.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_vectorrange, organization={Wolfram Research}, title={VectorRange}, year={2020}, url={https://reference.wolfram.com/language/ref/VectorRange.html}, note=[Accessed: 13-June-2026]}