diff --git a/sharppy/viz/hodo.py b/sharppy/viz/hodo.py index c01d68e7..f9be9463 100644 --- a/sharppy/viz/hodo.py +++ b/sharppy/viz/hodo.py @@ -1228,7 +1228,7 @@ def draw_hodo(self, qp, prof, colors, width=2): path = QPainterPath() path.moveTo(seg_x[idx], seg_y[idx]) - for z_idx in xrange(seg_idxs[idx] + 1, seg_idxs[idx + 1]): + for z_idx in xrange(seg_idxs[idx], seg_idxs[idx + 1]): path.lineTo(xx[z_idx], yy[z_idx]) path.lineTo(seg_x[idx + 1], seg_y[idx + 1])