In [2]:
# Tell notebook to put plots inline
%matplotlib inline
import numpy as np # numerics library
import matplotlib.pyplot as plt # plotting library
In [3]:
# Sample plot
x = np.arange(1024)
plt.plot(x)
Out[3]:
In [4]:
import pysample
p = pysample.pysample()
In [5]:
print help(p)
In [6]:
x = np.arange(12, dtype=np.double)
y = np.arange(12, dtype=np.double)
In [7]:
z = p.add(x,y)
In [8]:
print x
In [9]:
print y
In [10]:
print z
In [11]:
p.cleanup()
In [11]: