# Coloring polygon

**URL:** <https://forum.generic-mapping-tools.org/t/coloring-polygon/1026>\
**Category:** Q&A\
**Created:** [November 11, 2020, 4:56pm UTC](https://forum.generic-mapping-tools.org/t/coloring-polygon/1026 "2020-11-11T16:56:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yacob](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yacob/32/576_2.png) [@Yacob](https://forum.generic-mapping-tools.org/u/Yacob)\
**Post date:** [November 11, 2020, 4:56pm UTC](https://forum.generic-mapping-tools.org/t/coloring-polygon/1026/1 "2020-11-11T16:56:24Z")

</div>

I have kml file with 32 or so polygons. I have converted to gmt and the contents of the file show each polygon separated by “\>” followed by a polygon name. I would like to colour each individual polygon in a different colour. What is the easiest way to do this using GMT 6?

/yacob

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 11, 2020, 8:07pm UTC](https://forum.generic-mapping-tools.org/t/coloring-polygon/1026/2 "2020-11-11T20:07:32Z")

</div>

Probably need to make a categorical CPT with text keys:

pollyname1 red  
polyname2 135/55/10  
…

and then instead a -Z infront of those names in your segment headers.
