# Setting a color hinge for 'oleron' color palette table (cpt)

**URL:** <https://forum.generic-mapping-tools.org/t/setting-a-color-hinge-for-oleron-color-palette-table-cpt/74>\
**Category:** Q&A\
**Created:** [November 8, 2019, 2:18am UTC](https://forum.generic-mapping-tools.org/t/setting-a-color-hinge-for-oleron-color-palette-table-cpt/74 "2019-11-08T02:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiji14](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/weiji14/32/33_2.png) [@weiji14](https://forum.generic-mapping-tools.org/u/weiji14)\
**Post date:** [November 8, 2019, 2:18am UTC](https://forum.generic-mapping-tools.org/t/setting-a-color-hinge-for-oleron-color-palette-table-cpt/74/1 "2019-11-08T02:18:38Z")

</div>

Is there a way to set or adjust the [color hinge](https://docs.generic-mapping-tools.org/latest/makecpt.html#color-hinges) point for the [oleron](http://www.fabiocrameri.ch/oleron.php) color palette table? I’d like it to be centered at 0 like some of the other [colormaps](https://docs.generic-mapping-tools.org/latest/cookbook/cpts.html) (e.g. geo, relief, etc), but couldn’t find a setting in [makecpt](https://docs.generic-mapping-tools.org/latest/makecpt) that does it.  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/50d1973a85ee791dee577dcf61d7bb8b0fc975a3.png)

---

<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 8, 2019, 5:23am UTC](https://forum.generic-mapping-tools.org/t/setting-a-color-hinge-for-oleron-color-palette-table-cpt/74/2 "2019-11-08T05:23:18Z")

</div>

The oleron master cpt has a hinge at 0:

`# HINGE = 0`

There are 22 of the CPTs that have hinge. But 7 of them (including oleron) did not actually include z-slices that ended at 0 exactly; they had records like this:

`-0.003922 230/242/25 0.003922 26/76/0`

i.e., the slice is straddling the 0. A PR has been submitted. Thanks for pointing it out.

---

<div class="post-metadata">

**Author:** ![weiji14](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/weiji14/32/33_2.png) [@weiji14](https://forum.generic-mapping-tools.org/u/weiji14)\
**Post date:** [November 8, 2019, 8:07am UTC](https://forum.generic-mapping-tools.org/t/setting-a-color-hinge-for-oleron-color-palette-table-cpt/74/3 "2019-11-08T08:07:58Z")

</div>

Thanks @pwessel, I see the PR at [https://github.com/GenericMappingTools/gmt/pull/2004](https://github.com/GenericMappingTools/gmt/pull/2004).
