On the terminal install matplotlib:

>>pip install matplotlib

import matplotlib.pylab as plt
import numpy as np
x = np.arange(-8, 8, 0.1)
f = 1 / (1 + np.exp(-x))
plt.plot(x, f)
plt.xlabel('x')
plt.ylabel('f(x)')
plt.show()


Screen Shot 2017-04-20 at 21.34.54
Advertisements