# Change size of ticks and font in colorbar

**URL:** <https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688>\
**Category:** Q&A\
**Created:** [February 26, 2024, 11:01am UTC](https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688 "2024-02-26T11:01:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrocha72](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jrocha72/32/3232_2.png) [@jrocha72](https://forum.generic-mapping-tools.org/u/jrocha72)\
**Post date:** [February 26, 2024, 11:01am UTC](https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688/1 "2024-02-26T11:01:50Z")

</div>

Hello all,  
I want to change the size of ticks and/or font of the colorbar, as by default it is too small. Can anyone help? I’m using 6.5.0 version.  
Here is my line for this:  
gmt set GMT\_THEME=off  
gmt get FORMAT\_GEO\_MAP  
gmt colorbar -Dx7.5c/-.85c+w4c/0.15c+jTC+h+e -F+gwhite -Ccontinuous.cpt -B10g1   
-B+tcontinuous -Bx -By+lmm/day

## Thank you. Cheers,

João Rocha

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [February 26, 2024, 2:14pm UTC](https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688/2 "2024-02-26T14:14:26Z")

</div>

Hi @jrocha72.

You have to check in the cods what control that features.

From example, this is what the doc says about the fonts:

> The font used for the annotations along the scale is specified by [FONT\_ANNOT\_PRIMARY](https://docs.generic-mapping-tools.org/latest/gmt.conf.html#term-FONT_ANNOT_PRIMARY) while any unit placed at the side of the bar is controlled by [FONT\_ANNOT\_SECONDARY](https://docs.generic-mapping-tools.org/latest/gmt.conf.html#term-FONT_ANNOT_SECONDARY). If a label along the bar is requested, it is plotted with [FONT\_LABEL](https://docs.generic-mapping-tools.org/latest/gmt.conf.html#term-FONT_LABEL).

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [February 26, 2024, 7:02pm UTC](https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688/3 "2024-02-26T19:02:19Z")

</div>

Like in the answer the other post with a similar question

```auto
gmt colorbar -Dx7.5c/-.85c+w14c/0.15c+jTC+h+e -F+gwhite -B.1g.2 -B+tcontinuous -Cjet -Bx -By+lmm/day --FONT_ANNOT=20 -png lixo

```

 ![lixo](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/e/e2c1e7bf47b1cafa7eb2deb06a4a799ecfaab620.png)

---

<div class="post-metadata">

**Author:** ![jrocha72](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jrocha72/32/3232_2.png) [@jrocha72](https://forum.generic-mapping-tools.org/u/jrocha72)\
**Post date:** [February 28, 2024, 10:25pm UTC](https://forum.generic-mapping-tools.org/t/change-size-of-ticks-and-font-in-colorbar/4688/4 "2024-02-28T22:25:01Z")

</div>

Hi @Joaquim,  
Thank you for the reply. It worked.

## Best regards,

João Rocha
