In [1]:
%pylab inline
from pylab import *
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();