numpy: Tools

Other tools

  • numpy.linalg
  • scipy
  • matplotlib
In [1]:
import numpy as np
import matplotlib.pyplot as pt
In [2]:
x = np.linspace(-10, 10, 100)
pt.plot(x, np.sin(x)+x*0.5)
Out[2]:
[<matplotlib.lines.Line2D at 0x7f79b98ad668>]
In [3]:
pic = np.sin(x).reshape(len(x), 1)  * np.cos(x)
pt.imshow(pic)
Out[3]:
<matplotlib.image.AxesImage at 0x7f79b97bc278>
In [ ]: