Mandelbrot set: Difference between revisions

m
(→‎{{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 amore little tidiersuitable for teaching. It does not use performance purposestricks.
<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 = 150)
ax.imshow(escape_table, cmap=plt.cm.twilight_shifted)
plt.show()</lang>
305

edits