Mercurial > repos > mheinzl > fsd
comparison fsd.py @ 23:5ae4fd1d4a12 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:11:45 -0400 |
parents | 5e650e66e058 |
children | 807d893d04a7 |
comparison
equal
deleted
inserted
replaced
22:5e650e66e058 | 23:5ae4fd1d4a12 |
---|---|
334 x = [xi * 0.5 for xi in x] | 334 x = [xi * 0.5 for xi in x] |
335 w = 0.4 | 335 w = 0.4 |
336 else: | 336 else: |
337 x = [xi + barWidth for xi in x] | 337 x = [xi + barWidth for xi in x] |
338 w = 1./(len(list_to_plot) + 1) | 338 w = 1./(len(list_to_plot) + 1) |
339 | |
340 print(label[i]) | |
341 print(colors[i]) | |
342 print(w) | |
339 | 343 |
340 if to_plot[l] == "Relative frequencies": | 344 if to_plot[l] == "Relative frequencies": |
341 counts2_rel = ax.bar(x, list(numpy.float_(y)) / sum(y), align="edge", width=w, | 345 counts2_rel = ax.bar(x, list(numpy.float_(y)) / sum(y), align="edge", width=w, |
342 edgecolor="black", label=label[i], alpha=0.8, linewidth=1, color=colors[i]) | 346 edgecolor="black", label=label[i], alpha=0.8, linewidth=1, color=colors[i]) |
347 | |
343 else: | 348 else: |
344 counts2 = ax.bar(x, y, align="edge", width=w, edgecolor="black", label=label[i], | 349 counts2 = ax.bar(x, y, align="edge", width=w, edgecolor="black", label=label[i], |
345 alpha=0.8, linewidth=1, color=colors[i]) | 350 alpha=0.8, linewidth=1, color=colors[i]) |
346 if i == len(list_to_plot2): | 351 if i == len(list_to_plot2): |
347 barWidth += 1. / (len(list_to_plot) + 1) + 1. / (len(list_to_plot) + 1) | 352 barWidth += 1. / (len(list_to_plot) + 1) + 1. / (len(list_to_plot) + 1) |