In [3]:
import matplotlib.pyplot as plt
%pylab inline

import numpy as np

X = np.linspace(0,100,40) +np.random.rand(40)*5
plt.plot(X,3*X-2+np.random.rand(40),'ko')


Populating the interactive namespace from numpy and matplotlib
Out[3]:
[<matplotlib.lines.Line2D at 0x7ff0adaac390>]

In [25]:
X = np.linspace(0,100,40)
Y = 3*X - 2 + np.random.randn(40)*50
np.savetxt('Data/scatter1.txt',np.column_stack((X,Y)))
plt.plot(X,3*X-2+np.random.randn(40)*50,'ko')


Out[25]:
[<matplotlib.lines.Line2D at 0x7ff0ace9a198>]

In [23]:
np.co


Out[23]:
array([   0.        ,    2.56410256,    5.12820513,    7.69230769,
         10.25641026,   12.82051282,   15.38461538,   17.94871795,
         20.51282051,   23.07692308,   25.64102564,   28.20512821,
         30.76923077,   33.33333333,   35.8974359 ,   38.46153846,
         41.02564103,   43.58974359,   46.15384615,   48.71794872,
         51.28205128,   53.84615385,   56.41025641,   58.97435897,
         61.53846154,   64.1025641 ,   66.66666667,   69.23076923,
         71.79487179,   74.35897436,   76.92307692,   79.48717949,
         82.05128205,   84.61538462,   87.17948718,   89.74358974,
         92.30769231,   94.87179487,   97.43589744,  100.        ])

In [ ]: