Skip to content

Commit 7a62ff6

Browse files
Dom LaetschDom Laetsch
authored andcommitted
fix readcovplot
1 parent 8ecb594 commit 7a62ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BtPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def plotReadCov(self, refcov_dict):
501501
ax_main.set_axis_bgcolor(BGGREY)
502502
ax_group = plt.subplot(gs[1])
503503
ax_group.set_axis_bgcolor(BGGREY)
504-
rect_group = ax_group.bar(x_pos_group, plot_data[cov_lib]['group'].values, width = 0.5, tick_label=plot_data[cov_lib]['group'].labels, align='right', color = plot_data[cov_lib]['group'].colours)
504+
rect_group = ax_group.bar(x_pos_group, plot_data[cov_lib]['group'].values, width = 0.5, tick_label=plot_data[cov_lib]['group'].labels, align='center', color = plot_data[cov_lib]['group'].colours)
505505
for rect_g in rect_group:
506506
height_g = float(rect_g.get_height())
507507
ax_group.text(rect_g.get_x() + rect_g.get_width()/2., 0.005 + height_g, '{:.1f}%'.format(height_g*100), ha='center', va='bottom')

0 commit comments

Comments
 (0)