# HG changeset patch # User mheinzl # Date 1559555604 14400 # Node ID 60f66f7018169df27c0ec91150303ee2f6fff217 # Parent 6d6de5991fa2e2d916f8266ef7f907c5736f8de1 planemo upload for repository https://github.com/monikaheinzl/duplexanalysis_galaxy/tree/master/tools/fsd commit b8a2f7b7615b2bcd3b602027af31f4e677da94f6-dirty diff -r 6d6de5991fa2 -r 60f66f701816 fsd.py --- a/fsd.py Mon Jun 03 05:47:41 2019 -0400 +++ b/fsd.py Mon Jun 03 05:53:24 2019 -0400 @@ -338,13 +338,17 @@ w = 1./(len(list_to_plot) + 1) - print(label[i]) - print(colors[i]) - print(w) + #print(label[i]) + #print(colors[i]) + #print(w) # linewidth=1, + + print(sum(y)) + new_y = [yi / float(sum(y)) for yi in y] + print(new_y) if to_plot[l] == "Relative frequencies": - counts2_rel = ax.bar(x, y.astype(float) / sum(y), align="edge", width=w, + counts2_rel = ax.bar(x, new_y, align="edge", width=w, edgecolor="black", label=label[i], alpha=0.8, color=colors[i]) else: