In [41]:
import matplotlib.pyplot as plt
import math
import numpy as np

In [42]:
%matplotlib inline

can't use range(-10,10), because range only accept integer as step


In [43]:
x=[i for i in np.arange(-10,10,0.01)]

In [44]:
y=[1/(1+math.exp(-1*x_)) for x_ in x]

In [45]:
plt.scatter(x,y)


Out[45]:
<matplotlib.collections.PathCollection at 0x7fc11aea4908>

In [ ]: