Skip to content

Commit 849ff3d

Browse files
committed
Adjust y-axis limit for coverage plot
1 parent d57e311 commit 849ff3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/plot_bam_coverage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def plot_coverage(positions, coverage, bed_intervals, bed_labels, plot_file, plo
3838
plt.xlabel('Position')
3939
plt.ylabel('Depth')
4040
plt.grid(True)
41+
plt.ylim(0, max(smooth_coverage) * 1.1)
4142

4243
for i, interval in enumerate(bed_intervals):
4344
x_formatter = FuncFormatter(lambda x, p: format(int(x), ','))

0 commit comments

Comments
 (0)