Mercurial > repos > mheinzl > fsd
changeset 26:60f66f701816 draft
planemo upload for repository https://github.com/monikaheinzl/duplexanalysis_galaxy/tree/master/tools/fsd commit b8a2f7b7615b2bcd3b602027af31f4e677da94f6-dirty
author | mheinzl |
---|---|
date | Mon, 03 Jun 2019 05:53:24 -0400 |
parents | 6d6de5991fa2 |
children | b2b1f44966cb |
files | fsd.py |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: