def juggle_axes(xs, ys, zs, zdir):
 if (zdir == u'x'):
  return (zs, xs, ys)
 elif (zdir == u'y'):
  return (xs, zs, ys)
 elif (zdir[0] == u'-'):
  return rotate_axes(xs, ys, zs, zdir)
 else:
  return (xs, ys, zs)

def juggle_axes ( xs , ys , zs , zdir ) : if ( zdir == u'x' ) : return ( zs , xs , ys ) elif ( zdir == u'y' ) : return ( xs , zs , ys ) elif ( zdir [ 0 ] == u'-' ) : return rotate_axes ( xs , ys , zs , zdir ) else : return ( xs , ys , zs )
reorder coordinates so that 2d xs .