In [1]:
import numpy as n, pylab as p, nltk as k, networkx as x

In [21]:
foo=p.hist(n.random.normal(size=1000),bins=100,alpha=0.5); bar=p.hist(4*(n.random.random(size=1000)-0.5),bins=100,alpha=.5))



In [38]:
xs = n.linspace(0,10,100)

In [44]:
ys = n.sin(xs)
yys = n.cos(xs)
yyys = n.tanh(xs)

In [45]:
p.plot(xs, ys)
p.plot(xs, yys)
p.plot(xs, yyys)


Out[45]:
[<matplotlib.lines.Line2D at 0x779c890>]

In [50]:
xs = n.random.random(100)
ys = n.random.random(100)
p.plot(xs, ys)


Out[50]:
[<matplotlib.lines.Line2D at 0x80bb510>]

In [51]:
p.scatter(xs, ys)


Out[51]:
<matplotlib.collections.PathCollection at 0x80eeb10>

In [ ]: