Mercurial > repos > mheinzl > fsd
comparison fsd.py @ 24:807d893d04a7 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:37:48 -0400 |
| parents | 5ae4fd1d4a12 |
| children | 6d6de5991fa2 |
comparison
equal
deleted
inserted
replaced
| 23:5ae4fd1d4a12 | 24:807d893d04a7 |
|---|---|
| 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 | 339 |
| 340 | |
| 340 print(label[i]) | 341 print(label[i]) |
| 341 print(colors[i]) | 342 print(colors[i]) |
| 342 print(w) | 343 print(w) |
| 344 # linewidth=1, | |
| 343 | 345 |
| 344 if to_plot[l] == "Relative frequencies": | 346 if to_plot[l] == "Relative frequencies": |
| 345 counts2_rel = ax.bar(x, list(numpy.float_(y)) / sum(y), align="edge", width=w, | 347 counts2_rel = ax.bar(x, list(numpy.float_(y)) / sum(y), align="edge", width=w, |
| 346 edgecolor="black", label=label[i], alpha=0.8, linewidth=1, color=colors[i]) | 348 edgecolor="black", label=label[i], alpha=0.8, color=colors[i]) |
| 347 | 349 |
| 348 else: | 350 else: |
| 349 counts2 = ax.bar(x, y, align="edge", width=w, edgecolor="black", label=label[i], | 351 counts2 = ax.bar(x, y, align="edge", width=w, edgecolor="black", label=label[i], |
| 350 alpha=0.8, linewidth=1, color=colors[i]) | 352 alpha=0.8, color=colors[i]) |
| 351 if i == len(list_to_plot2): | 353 if i == len(list_to_plot2): |
| 352 barWidth += 1. / (len(list_to_plot) + 1) + 1. / (len(list_to_plot) + 1) | 354 barWidth += 1. / (len(list_to_plot) + 1) + 1. / (len(list_to_plot) + 1) |
| 353 else: | 355 else: |
| 354 barWidth += 1. / (len(list_to_plot) + 1) | 356 barWidth += 1. / (len(list_to_plot) + 1) |
| 355 | 357 |
