comparison mirgene_graphs.py @ 20:2eebd59cc5ea draft

Uploaded
author glogobyte
date Wed, 20 Oct 2021 12:11:04 +0000
parents 01679b6e886a
children 1d8cdfb3a359
comparison
equal deleted inserted replaced
19:3dd4977f3277 20:2eebd59cc5ea
167 # Plot 167 # Plot
168 ax1 = plt.subplot2grid((1,2),(0,0)) 168 ax1 = plt.subplot2grid((1,2),(0,0))
169 patches, texts, autotexts=plt.pie(sizes, labels=labels, colors=colors, startangle=140,autopct='%1.1f%%',radius=0.8) 169 patches, texts, autotexts=plt.pie(sizes, labels=labels, colors=colors, startangle=140,autopct='%1.1f%%',radius=0.8)
170 [x.set_fontsize(10) for x in texts] 170 [x.set_fontsize(10) for x in texts]
171 plt.title(group_name1.capitalize() + ' group (reads)', fontsize=12) 171 plt.title(group_name1.capitalize() + ' group (reads)', fontsize=12)
172 labels = 'miRNA RefSeq','templated', 'Unassigned' 172 labels = 'miRNA RefSeq','templated', 'unassigned'
173 sizes = [t_mat_counts, t_tem_counts, t_unmap_counts] 173 sizes = [t_mat_counts, t_tem_counts, t_unmap_counts]
174 colors = ['gold', 'yellowgreen', 'lightskyblue'] 174 colors = ['gold', 'yellowgreen', 'lightskyblue']
175 explode = (0.2, 0.05, 0.1) 175 explode = (0.2, 0.05, 0.1)
176 # Plot 176 # Plot
177 ax2 = plt.subplot2grid((1,2),(0,1)) 177 ax2 = plt.subplot2grid((1,2),(0,1))