I wrote the simple following code to plot a given vector field:
rr := Sqrt[x^2 + y^2];
a := 0.5;
xlim = 1;
splot = StreamPlot[{
rr^a (x (x rr + y rr + y^2))/rr^3,
rr^a (y (x rr + y rr - x^2))/rr^3},
{x, -xlim, xlim}, {y, -xlim, xlim},
StreamColorFunction -> "Heat", AxesLabel -> {"x", "y"}];
Show[splot]
I would like to color the trajectories which enter and leave the origin in different colors. For example:
Is there a simple way to do this? Thanks very much in advance!