As you zoom in farther and farther, you start to lose resolution on the edge of the stable region. This can be fixed by increasing the value of n passed to generate_mandelbrot.
Here's what it looks like with the default n=100.
And here's a similar view with n=1000, but of course, this is much slower.
With a bit of experimentation, you should be able to determine a logarithmic relationship between the visible scale and the number of iterations. For reference, in the initial view the vertical range is 3, and n=100 is sufficient; in my example, when the vertical range is about 0.003, n=1000 seems to be more than sufficient.
As you zoom in farther and farther, you start to lose resolution on the edge of the stable region. This can be fixed by increasing the value of
n
passed togenerate_mandelbrot
. Here's what it looks like with the defaultn=100
.And here's a similar view with
n=1000
, but of course, this is much slower.With a bit of experimentation, you should be able to determine a logarithmic relationship between the visible scale and the number of iterations. For reference, in the initial view the vertical range is 3, and n=100 is sufficient; in my example, when the vertical range is about 0.003, n=1000 seems to be more than sufficient.