Mandelbrot set: Difference between revisions
Content deleted Content added
→{{header|Python}}: a little tidier for teaching purposes |
m →{{header|Python}}: minor changes |
||
Line 6,390:
extent=(X.min(), X.max(), Y.min(), Y.max()))</lang>
Actually the same, but
<lang python>import numpy as np
import matplotlib.pyplot as plt
Line 6,415:
escape_table[not_escaped] = i + 1
fig, ax = plt.subplots(dpi
ax.imshow(escape_table, cmap=plt.cm.twilight_shifted)
plt.show()</lang>
|