Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
23257: Changed fast_mandel_plot to fast_mandelbrot_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarros committed Jun 30, 2017
1 parent 9b6738b commit a1d02e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/sage/dynamics/complex_dynamics/mandel_julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#*****************************************************************************

from __future__ import absolute_import, division
from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandel_plot
from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandelbrot_plot
from sagenb.notebook.interact import interact
from sagenb.notebook.interact import slider
from sagenb.notebook.interact import input_box
Expand Down Expand Up @@ -135,9 +135,9 @@ def _(real_center=input_box(x_center, 'Real'),
color_num=input_box(number_of_colors, 'Number of Colors'),
image_color=color_selector(default=Color([j/255 for j in base_color]),
label="Image Color", hide_box=True)):
return fast_mandel_plot(real_center, im_center, width, iterations,
return fast_mandelbrot_plot(real_center, im_center, width, iterations,
pixel_count, level_sep, color_num, image_color).show()

else:
return fast_mandel_plot(x_center, y_center, image_width, max_iteration,
return fast_mandelbrot_plot(x_center, y_center, image_width, max_iteration,
pixel_count, iteration_level, number_of_colors, base_color)
10 changes: 5 additions & 5 deletions src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ from sage.repl.image import Image
from copy import copy
from cysignals.signals cimport sig_check

def fast_mandel_plot(double x_center, double y_center, double image_width,
def fast_mandelbrot_plot(double x_center, double y_center, double image_width,
long max_iteration, long pixel_count, long level_sep, long color_num, base_color):

r"""
Expand Down Expand Up @@ -57,14 +57,14 @@ def fast_mandel_plot(double x_center, double y_center, double image_width,
Plot the Mandelbrot set with the center point `-1 + 0i`::
sage: from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandel_plot
sage: fast_mandel_plot(-1, 0, 4, 500, 600, 1, 20, [40, 40, 40]) # long time
sage: from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandelbrot_plot
sage: fast_mandelbrot_plot(-1, 0, 4, 500, 600, 1, 20, [40, 40, 40]) # long time
600x600px 24-bit RGB image
We can focus on smaller parts of the set by adjusting image_width::
sage: from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandel_plot
sage: fast_mandel_plot(-1.11, 0.2283, 1/128, 2000, 500, 1, 500, [40, 100, 100]) # long time
sage: from sage.dynamics.complex_dynamics.mandel_julia_helper import fast_mandelbrot_plot
sage: fast_mandelbrot_plot(-1.11, 0.2283, 1/128, 2000, 500, 1, 500, [40, 100, 100]) # long time
500x500px 24-bit RGB image
"""

Expand Down

0 comments on commit a1d02e4

Please sign in to comment.