Mandelbrot set: Difference between revisions

m
Final fix: the interpolation parameter is now between 0 and 1, thickness is now a constant
m (Used partial antialiasing for boundary detection and made some truncations.)
m (Final fix: the interpolation parameter is now between 0 and 1, thickness is now a constant)
Line 8,018:
savefig("Mandelbrot_set_3.png")
 
N, thickness = D .> 0, 0.005 # boundary detection with partialand antialiasinginterpolation
D[N] = 0max.005(1 .- min.(D[N] ./ thickness, 0.005)
 
heatmap(D .^ 1.0, c=:binary)
Line 10,992:
plt.savefig("Mandelbrot_set_3.png", dpi=200)
 
N, thickness = D > 0, 0.005 # boundary detection with partialand antialiasinginterpolation
D[N] = 0np.005maximum(1 - np.minimum(D[N] / thickness, 0.005)
 
plt.imshow(D ** 1.0, cmap=plt.cm.binary, origin="lower")
305

edits