# Adjust hinge in cpt

**URL:** <https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524>\
**Category:** Q&A\
**Created:** [November 22, 2026, 5:46pm UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524 "2026-11-22T17:46:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [November 22, 2026, 5:46pm UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524/1 "2026-11-22T17:46:38Z")

</div>

It seems like `-T` **has** to be specified in order to change the hinge for a CPT with `+h<new hinge>`.  
This is not mentioned in the [makecpt](https://docs.generic-mapping-tools.org/dev/makecpt.html#c) (or grd2cpt) docs. Should it?

E.g.:

```auto
$ gmt makecpt -Cfes > col.cpt

$ gmt makecpt -Cfes+h0.6 > col_no_T.cpt

$ cmp col_no_T.cpt col.cpt # identical

$ gmt makecpt -Cfes+h0.6 -T0/1 > col_T.cpt

$ cmp col_T.cpt col.cpt
col_T.cpt col.cpt differ: byte 1, line 1 # differs

```

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [November 23, 2026, 7:45pm UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524/2 "2026-11-23T19:45:26Z")

</div>

I just tried this smale example in PyGMT:

```python
import pygmt

fig = pygmt.Figure()
fig.basemap(region=[-1, 1] * 2, projection="X5c", frame=1)

pygmt.makecpt(cmap="fes")
fig.colorbar(position="jTC+h+w4c", frame=True)

pygmt.makecpt(cmap="fes+h0.6")
fig.colorbar(position="jMC+h+w4c", frame=True)

pygmt.makecpt(cmap="fes+h0.6", series=[-1, 1])
fig.colorbar(position="jBC+h+w4c", frame=True)

fig.show()

```

And without setting **-T** or `series` the change of the hinge from 0 to 0.6 ( **+h0.6** ) is not considered.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/5/5811051ec66637f7e65d94fe4fed4b030665e03a.png)

Looking at the GMT docs for **-C** , it states not explicitly that **-T** is needed in case the hinge of the colormap should be changed. Maybe this is not mentioned, as in case `makecpt` is used to set up a colormap, normally a range (i.e., **-T** or `series`) is given for this colormap. Otherwise users can also directly pass the colormap name to the plotting modules.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [November 24, 2026, 7:52am UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524/3 "2026-11-24T07:52:08Z")

</div>

Maybe it is logical that one should provide a **-T** when using **-C+h** , but it’s not intuitive for me.

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [November 24, 2026, 9:33am UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524/4 "2026-11-24T09:33:09Z")

</div>

I just submitted a small PR add this to the docs at [DOC/makecpt: Mention -T is needed to change hinge via -C by yvonnefroehlich · Pull Request #9318 · GenericMappingTools/gmt · GitHub](https://github.com/GenericMappingTools/gmt/pull/9318). Let’s see what the other think; for me it’s fine adding this to the docs.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [November 24, 2026, 10:35am UTC](https://forum.generic-mapping-tools.org/t/adjust-hinge-in-cpt/6524/5 "2026-11-24T10:35:24Z")

</div>

Great! Thank you.
