Mandelbrot set: Difference between revisions

Content deleted Content added
Majow (talk | contribs)
→‎{{header|Python}}: Changed names of some variables (arrays and lists have a capital letter)
Majow (talk | contribs)
m →‎{{header|Python}}: dpi increased
Line 7,067: Line 7,067:


plt.imshow(T, cmap=plt.cm.twilight_shifted)
plt.imshow(T, cmap=plt.cm.twilight_shifted)
plt.savefig("mandelbrot.png", dpi=200)</lang>
plt.savefig("Mandelbrot.png", dpi=300)</lang>
Second with Numpy and complex matrices.
Second with Numpy and complex matrices.
<lang python>import numpy as np
<lang python>import numpy as np
Line 7,090: Line 7,090:


plt.imshow(T, cmap=plt.cm.twilight_shifted)
plt.imshow(T, cmap=plt.cm.twilight_shifted)
plt.savefig("mandelbrot.png", dpi=200)</lang>
plt.savefig("Mandelbrot.png", dpi=300)</lang>


=={{header|R}}==
=={{header|R}}==