diff fsd.py @ 37:67e34fc2b67a 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 07:26:01 -0400
parents 54ba0ad1263f
children 28fb192858ea
line wrap: on
line diff
--- a/fsd.py	Mon Jun 03 07:22:06 2019 -0400
+++ b/fsd.py	Mon Jun 03 07:26:01 2019 -0400
@@ -359,14 +359,12 @@
 
                 if to_plot[l] == "Relative frequencies":
                     print("relative")
-                    #new_y = list(numpy.concatenate((numpy.array([yi / float(numpy.sum(y)) for yi in y]))))
-                    
-                    counts2_rel = ax.bar(x, list(numpy.float_(y)) / numpy.sum(y), align="edge", width=w,
+                    new_y = list(numpy.concatenate((numpy.array([yi / float(numpy.sum(y)) for yi in y]))))
+                    counts2_rel = ax.bar(x, new_y, align="edge", width=w,
                                          edgecolor="black", label=label[i],linewidth=1, alpha=0.8, color=colors[i])
                     
                 else:
                     y = list(y.reshape((len(y))))
-                    
                     counts2 = ax.bar(x, y, align="edge", width=w, edgecolor="black", label=label[i], linewidth=1,
                                      alpha=0.8, color=colors[i])
                 if i == len(list_to_plot2):