"""
Example of plotting a paratmetric curve in 3D using matplotlib traphics.
"""


import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from numpy import pi, sin , cos

thetas = np.linspace(0,6*pi,101)
x= cos(thetas)
y = sin(thetas)
z= thetas/2

plt.ion
fig = plt.figure()
ax = Axes3D(fig)
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z')
ax.elev, ax.azim = 80, -120
ax.plot(x,y,z)
plt.show()
