Mittwoch, 17. Februar 2010
Python 043 Matplotlib + random + select
import numpy as np
import scipy
from scipy import *
import matplotlib.pyplot as plt
x = np.random.randint(0, 10, 10000)
x = x.reshape(100,100)
a = select([x > 8, x > 7],[x,x+10])
plt.imshow(a)
plt.show()
Abonnieren
Posts (Atom)