I have the following code
R = 0.5
\[Alpha] = 90
x2 = Cos[\[Alpha] Degree] R
y2 = Sin[\[Alpha] Degree] R
EField[x_, y_, x0_, y0_, q_] =
q {x - x0, y - y0}/((x - x0)^2 + (y - y0)^2)
StreamPlot[
EField[x, y, -R, 0, 2] + EField[x, y, x2, y2, 6], {x, -R*1.1,
R*1.1}, {y, -R*1.1, R*1.1}, PlotLegends -> Placed[Automatic, Below]]
Which provides the following plot:
You can see because of the asymptotes it is taking a maximum value that is so large that all other values become blue. Is there a way to manually change the colorbar range so that the min and max are more reasonable and thus more detail can be seen?
I've tried to add a PlotLegends-> BarLegend[...]
via this link but it doesn't seem to change the actual plot. Any advice is appreciated. :)
x2
ory2
$\endgroup$Manipulate
and so I tried to include just the relevant part. I'll update now. Thank you. $\endgroup$((x - x0)^2 + (y - y0)^2)^(3/2)
$\endgroup$