I'm trying to plot a vector field over the range $[-1, 1]\times [-1, 1]$, but only outside the circle of radius 0.2 centered at the origin. The function diverges at the origin so the magnitude of all the other arrows is tiny in comparison. I've restricted the plot range using RegionFunction->Function[{x, y, vx, vy, n}, x^2+y^2>0.2]
, but it doesn't affect the scaling, (I couldn't get it scaling manually either.) A simple example in the style of what I want to do is:
VectorPlot[{1/Sqrt[x^2 + y^2], 1/ Sqrt[x^2 + y^2]}, {x, -1, 1}, {y, -1, 1},
RegionFunction -> Function[{x, y, vx, vy, n}, x^2 + y^2 > 0.2],
VectorScale -> Large]
But with the arrows only scaled based on their values outside the circle of radius 0.2.
Any advice would be much appreciated.
x^2 + y^2 > 0.2^2
, notx^2 + y^2 > 0.2
. $\endgroup$