def blended_transform_factory(x_transform, y_transform):
 if (isinstance(x_transform, Affine2DBase) and isinstance(y_transform, Affine2DBase)):
  return BlendedAffine2D(x_transform, y_transform)
 return BlendedGenericTransform(x_transform, y_transform)

def blended_transform_factory ( x_transform , y_transform ) : if ( isinstance ( x_transform , Affine2DBase ) and isinstance ( y_transform , Affine2DBase ) ) : return BlendedAffine2D ( x_transform , y_transform ) return BlendedGenericTransform ( x_transform , y_transform )
create a new "blended" transform using *x_transform* to transform the *x*-axis and *y_transform* to transform the *y*-axis .