fix cplot with non-float/int interval specification

This commit is contained in:
Fredrik Johansson
2010-06-14 19:42:53 +00:00
parent 3923d324d7
commit 75aeb77f55
+1
View File
@@ -172,6 +172,7 @@ def cplot(ctx, f, re=[-5,5], im=[-5,5], points=2000, color=None,
w[n,m] = v
if verbose:
print n, "of", N
rea, reb, ima, imb = map(float, [rea, reb, ima, imb])
axes.imshow(w, extent=(rea, reb, ima, imb), origin='lower')
axes.set_xlabel('Re(z)')
axes.set_ylabel('Im(z)')