Is it possible to create a visualization like this:
The areas in black are the regions where the values for $x_0$ in a Newton-Raphson recurrence relation converge to a solution for $f(x)=0$.
So far, my best attempt was only to plot the zeroes, which is fairly basic.
For $f(x):=3 x^7+x^4-3 x^3$, the roots are solved by:
xx = ReIm[x /. NSolve[f[x] == 0, x]] // Normal;
This gives me points with the $x$-coordinate representing the real part of the root, and $y$-coordinate for the imaginary part.
Using the code below, I have a representation of the function, and the roots (although the points representing complex roots are not meaningful).
Show[ContourPlot[{y == f[x]}, {x, -3, 3}, {y, -3, 3}, Axes -> {True}],
Graphics[{Red, PointSize[Medium], Point[xx]}]]
The recurrence relation is defined by: $$x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}$$
this approximates the roots of $f(x)$ depending on the initial $x_0$. Sometimes the relation converges to an accurate approximation of the root, sometimes (if $x_0$ is very far from the root) it diverges.
Now my question is:
How do I create a plot, similar to above, which tells what are the good values for $x_0$ that converges to a solution?


