def plot_PCoA(cat_data, otu_name, unifrac, names, colors, xr, yr, outDir,<EOL>save_as, plot_style):
fig = plt.figure(figsize=(<NUM_LIT>, <NUM_LIT:8>))<EOL>ax = fig.add_subplot(<NUM_LIT>)<EOL>for i, cat in enumerate(cat_data):<EOL><INDENT>plt.scatter(cat_data[cat]["<STR_LIT>"], cat_data[cat]["<STR_LIT>"], cat_data[cat]["<STR_LIT:size>"],<EOL>color=colors[cat], alpha=<NUM_LIT>, marker="<STR_LIT:o>", edgecolor="<STR_LIT>",<EOL>label=cat)<EOL><DEDENT>lgnd = plt.legend(loc="<STR_LIT>", scatterpoints=<NUM_LIT:3>, fontsize=<NUM_LIT>)<EOL>for i in range(len(colors.keys())):<EOL><INDENT>lgnd.legendHandles[i]._sizes = [<NUM_LIT>]  <EOL><DEDENT>plt.title("<STR_LIT:U+0020>".join(otu_name.split("<STR_LIT:_>")), style="<STR_LIT>")<EOL>plt.ylabel("<STR_LIT>".format(float(unifrac["<STR_LIT>"][<NUM_LIT:1>])))<EOL>plt.xlabel("<STR_LIT>".format(float(unifrac["<STR_LIT>"][<NUM_LIT:0>])))<EOL>plt.xlim(round(xr[<NUM_LIT:0>]*<NUM_LIT>, <NUM_LIT:1>), round(xr[<NUM_LIT:1>]*<NUM_LIT>, <NUM_LIT:1>))<EOL>plt.ylim(round(yr[<NUM_LIT:0>]*<NUM_LIT>, <NUM_LIT:1>), round(yr[<NUM_LIT:1>]*<NUM_LIT>, <NUM_LIT:1>))<EOL>if plot_style:<EOL><INDENT>gu.ggplot2_style(ax)<EOL>fc = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>fc = "<STR_LIT:none>"<EOL><DEDENT>fig.savefig(os.path.join(outDir, "<STR_LIT:_>".join(otu_name.split())) + "<STR_LIT:.>" + save_as,<EOL>facecolor=fc, edgecolor="<STR_LIT:none>", format=save_as,<EOL>bbox_inches="<STR_LIT>", pad_inches=<NUM_LIT>)<EOL>plt.close(fig)<EOL>
Plot PCoA principal coordinates scaled by the relative abundances of
otu_name.