def scale_taxa_data_matrix(coords, pct_var):
 return (coords[:, :len(pct_var)] * (pct_var / pct_var.max()))

def scale_taxa_data_matrix ( coords , pct_var ) : return ( coords [ : , : len ( pct_var ) ] * ( pct_var / pct_var . max ( ) ) )
scales pc data matrix by percent variation .