In [1]:
%pylab inline
from pylab import *


Populating the interactive namespace from numpy and matplotlib

In [2]:
x=linspace(0,10,100)
y=tanh(x)

In [3]:
figure()
plot(x, y, 'r')
xlabel('External Magnetic Field')
ylabel('M')
title('Tanh theory')
show();