I was kinda in rush, that's why I bumped, sorry for that.
import matplotlib.pyplot as plt def funkcja(c=0j, z=0 + 0j, n_max=100): for i in range(n_max): z = z * z + c if abs(z) > 2.0: T[i][j] = abs(z) break k = 600 l = 600 T = [[0]*l for i in range(k)] for i in range(k): for j in range(l): T = [(complex(-2 + i * 0.005, -1.5 + j * 0.005))] plt.imshow(T, cmap="bone") plt.show()Came up before with this, still, don't really know how to excecute the numbers I need for final product. I get an error: TypeError: Image data of dtype complex128 cannot be converted to float. What do I need to change?