Shaded & power normalized rendering
,
,
,
,
,
,
=
2.0
):
X
=
(
,
,
)
.
astype
(
)
Y
=
(
,
,
)
.
astype
(
)
C
=
X
+
Y
[:,
None
]
*
1
j
=
(
C
,
dtype
=
int
)
=
(
C
)
for
n
in
range
(
):
I
=
abs
(
)
<
[
I
]
=
n
[
I
]
=
[
I
]
**
2
+
C
[
I
]
[
==
-
1
]
=
0
return
,
if
__name__
==
'__main__'
:
import
time
import
matplotlib.pyplot
as
plt
import
matplotlib
from
matplotlib
import
colors
,
,
=
-
2.25
,
+
0.75
,
3000
//
2
,
,
=
-
1.25
,
+
1.25
,
2500
//
2
=
200
=
2.0
**
40
=
(
(
))
,
=
mandelbrot_set
(
,
,
,
,
,
,
,
)
with
(
invalid
=
'ignore'
):
=
(
+
1
-
(
(
abs
(
)))
+
)
=
72
=
10
=
10
*
/
=
(
figsize
=
(
,
),
=
)
=
((
0
,
0
,
1
,
1
),
frameon
=
False
,
aspect
=
1
)
=
(
azdeg
=
315
,
altdeg
=
10
)
=
(
,
cmap
=
[
"hot"
],
vert_exag
=
1.5
,
norm
=
(
0.3
),
blend_mode
=
'hsv'
)
(
,
extent
=
[
,
,
,
],
interpolation
=
"bicubic"
)
([])
([])
=
(
"%Y"
)
=
(
"The Mandelbrot fractal set
\n
"
"Rendered with matplotlib
%s
,
%s
- https://matplotlib.org"
%
(
,
))
(
+
.025
,
+
.025
,
,
color
=
"white"
,
fontsize
=
12
,
alpha
=
0.5
)
()
Total running time of the script: (0 minutes 6.029 seconds)