From fda125ab6dd3b306cb2a526f8d3afc3c92c0c6f3 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Thu, 16 Feb 2012 18:23:13 -0800 Subject: Plot update, bib update --- plot.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'plot.py') diff --git a/plot.py b/plot.py index ae3f6fb..611583c 100644 --- a/plot.py +++ b/plot.py @@ -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() -- cgit v1.2.3-70-g09d2