import pylab as pl
x = pl.linspace(-5,5,101)
y = sin(x)
pl.plot(x,y)
a = 3
b = 4
c = 5
a
pl.plot(x, y, "r-", x, pl.cos(x), "g.")
z = pl.identity(10)
z
pl.imshow(z)
x = pl.linspace(-5,5,201)
y = pl.linspace(-7,7,201)[:, pl.newaxis]
z = pl.sin(x**2 + y**2)
pl.imshow(z)
import pylab as pl
pl.figure(1, figsize=(6,6))
ax = pl.axes([0.1, 0.1, 0.8, 0.8])
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
fracs = [150,30,45, 10]
explode = (0, 0.05, 0, 0)
pl.pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%',
shadow=True)
pl.title('Raining Hogs and Dogs', bbox={'facecolor':'0.8', 'pad':5})
pl.show()
chaine = "flf-----fdsafsda----21341221----dsa"
chaine.split("----")