Other tools

  • numpy.linalg
  • scipy
  • matplotlib
In [1]:
import numpy as np
import matplotlib.pyplot as pt
In [4]:
x = np.linspace(-10, 10, 100)
pt.plot(x, np.sin(x)+x*0.5)
Out[4]:
[<matplotlib.lines.Line2D at 0x7f9d3c6ca1d0>]
In [5]:
pic = np.sin(x)[:,np.newaxis]  * np.cos(x)
pt.imshow(pic)
Out[5]:
<matplotlib.image.AxesImage at 0x7f9d3c69ef60>