<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="">ok, so there are multiples ways to plot a line. &nbsp;<div class="">Here’s my method which is over complicated for a single line but has massive speed benefits if you want to plot multiple lines. &nbsp;</div><div class=""><br class=""></div><div class=""><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;">Similar to the previous replies, you can use the relatively undocumented gsSegments and gsColors resources to do pretty much what Rick describes but with better scaleability.&nbsp;</div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"><br class=""></div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;">Attached function with hopefully sufficient comments to explain whats going on and includes an inline demo function at the bottom I put together a while back. &nbsp;</div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"><br class=""></div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;">To run the demo either load the script and call colored_line_demo() or comment out lines 127/128 and then `ncl add_colored_line.ncl` will run it as the main script.&nbsp;</div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"><br class=""></div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;">Note to devs, attached in this script is an extended version of get_color_index() to accept an array of "value". Could this be included in the main function, it's a trivial edit and retains backwards compatibility.&nbsp;</div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"><br class=""></div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"><br class=""></div><div class="gmail_default" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-family: verdana, sans-serif;"></div></div></body></html>