<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You’ve already answered your own question which is good, but I took a couple minutes to provide an alternative (possibly more flexible) method of accomplishing your goals.<div class=""><br class=""></div><div class="">Using gsn_add_polyline() to draw the bars, and putting them into respective procedures to make things more modular and generic. </div><div class=""><br class=""></div><div class="">The functions are incredibly simple and don’t check for many potential errors but are an example of how to break things up a bit more and make it more generic which can help future scripts. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></body></html>