def run(self):
     xmin = -2.025
     xmax = 0.6
     ymin = -1.125
     ymax = 1.125
     width = 400
     height = 400
     maxiter = 255
     mandel = Mandelbrot(xmin, xmax, ymin, ymax, width, height, maxiter)
     mandel.plot_mandelbrot()
예제 #2
0
def main():
    # creating the object for the mandelbrot class with needed information
    mandel = Mandelbrot(-2.025, 0.6, -1.125, 1.125, 1024, 1024, 255)
    # calling the plot method for the object
    mandel.plot_mandelbrot()