diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-02-16 18:23:13 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-02-16 18:23:13 -0800 |
| commit | fda125ab6dd3b306cb2a526f8d3afc3c92c0c6f3 (patch) | |
| tree | 6f8fd770a62d8d433471f92549fa3e5d38c794ec /plot.py | |
| parent | ba98a0b27361cb0987fb8c911d256dd1c919f269 (diff) | |
| download | recommendation-fda125ab6dd3b306cb2a526f8d3afc3c92c0c6f3.tar.gz | |
Plot update, bib update
Diffstat (limited to 'plot.py')
| -rw-r--r-- | plot.py | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -18,11 +18,15 @@ fig = plt.figure() # surf = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, # linewidth=0, antialiased=True) -ax = fig.add_subplot(1,1,1) -x = np.arange(-1,5,0.1) -y = (((4*x -24)*x +36)*x-16)*x -z = 0*x -ax.plot(x,y,x,z,antialiased=True) +#ax = fig.add_subplot(1,1,1) +#x = np.arange(-1,5,0.1) +#y = (((4*x -24)*x +36)*x-16)*x +#z = 0*x +#ax.plot(x,y,x,z,antialiased=True) +ax = fig.add_subplot(1,1,1) +x = np.arange(0,1,0.01) +y = np.sqrt((x-1)*(x+2)/((x+1)*(x-2))) +ax.plot(x,y) plt.show() |
