def sca(ax):
 managers = _pylab_helpers.Gcf.get_all_fig_managers()
 for m in managers:
  if (ax in m.canvas.figure.axes):
   _pylab_helpers.Gcf.set_active(m)
   m.canvas.figure.sca(ax)
   return
 raise ValueError(u'Axes instance argument was not found in a figure.')

def sca ( ax ) : managers = _pylab_helpers . Gcf . get_all_fig_managers ( ) for m in managers : if ( ax in m . canvas . figure . axes ) : _pylab_helpers . Gcf . set_active ( m ) m . canvas . figure . sca ( ax ) return raise ValueError ( u'Axes instance argument was not found in a figure.' )
set the current axes instance to *ax* .