# How to color line segments according z-value?

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-color-line-segments-according-z-value/2832>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [April 19, 2022, 4:58pm UTC](https://forum.generic-mapping-tools.org/t/how-to-color-line-segments-according-z-value/2832 "2022-04-19T16:58:41Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [April 21, 2022, 10:25am UTC](https://forum.generic-mapping-tools.org/t/how-to-color-line-segments-according-z-value/2832/16 "2022-04-21T10:25:01Z")

</div>

It’s really great! I feel this example belongs to the “how-to” category as mentioned in [Proposal: Creating a separate GMT tutorial page](https://flint.soest.hawaii.edu/t/proposal-creating-a-separate-gmt-tutorial-page/2831) or [https://www.generic-mapping-tools.org/gmt-examples/](https://www.generic-mapping-tools.org/gmt-examples/).

---

_[View the full topic](https://forum.generic-mapping-tools.org/t/how-to-color-line-segments-according-z-value/2832)._
