Skip to content
Snippets Groups Projects
Commit 04a1ae21 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 13685000
Branches
No related tags found
No related merge requests found
......@@ -3,19 +3,16 @@
# Neil Gershenfeld 2/3/11
# surface plot example
#
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from pylab import *
from numpy import *
from mpl_toolkits import mplot3d
l = 15.5
fig = plt.figure()
ax = fig.gca(projection='3d')
x = arange(-l,l,0.2)
y = arange(-l,l,0.2)
(x,y) = meshgrid(x,y)
r = sqrt(x**2+y**2)
z = sin(r)/r
fig = plt.figure(figsize =(8,8))
ax = plt.axes(projection ='3d')
ax.plot_surface(x,y,z)
plt.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment