##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Lance Simms, Stanford University 2009
#Purpose:
#  To have double x and double y axes

from pylab import *
from numpy import *
import matplotlib.pylab as mplot

mplot.figure(0)
mplot.clf()
a=arange(10)
mplot.plot(a,a)
ax0=gca()
ax1 = twinx(ax=ax0)
ax1.set_ylim(0,50)
ax2 = twiny(ax=ax0)
ax2.set_xlim(0,100) 

draw()
