File: plot3d1.py

package info (click to toggle)
pycode-browser 1%3A1.02%2Bgit20181006-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,088 kB
  • sloc: python: 2,779; xml: 152; makefile: 71
file content (15 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from numpy import *
import pylab as p
import matplotlib.axes3d as p3

w = v = u = linspace(0, 4*pi, 100)

fig=p.figure()
ax = p3.Axes3D(fig)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
ax.plot3D(u,v,sin(w))
ax.plot3D(u,sin(v),w)
ax.plot3D(sin(u),v,u)
p.show()