# Colorbar giving error in GMTmex

**URL:** <https://forum.generic-mapping-tools.org/t/colorbar-giving-error-in-gmtmex/530>\
**Category:** Q&A\
**Created:** [June 8, 2020, 11:29am UTC](https://forum.generic-mapping-tools.org/t/colorbar-giving-error-in-gmtmex/530 "2020-06-08T11:29:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richannan](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@richannan](https://forum.generic-mapping-tools.org/u/richannan)\
**Post date:** [June 8, 2020, 11:29am UTC](https://forum.generic-mapping-tools.org/t/colorbar-giving-error-in-gmtmex/530/1 "2020-06-08T11:29:14Z")

</div>

I am using GMT6 on xyz data within MATLAB; everything seems okay except the colorbar. Without the colorbar error, it plots perfectly.The error message is: “MATLAB [ERROR]: Shared GMT module not found: colorbar”. Can someone help a brother please? The attachment is the code I wrote:

 ![Help_GMTmex_colorbar](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/c7fac1075e39ff351a20f2edb34f0928e50ac0a5.jpeg)

---

<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:** [June 9, 2020, 1:50am UTC](https://forum.generic-mapping-tools.org/t/colorbar-giving-error-in-gmtmex/530/2 "2020-06-09T01:50:14Z")

</div>

@richannan Please do not post screen captures, Just copy your code and put it under a pair of triple backticks ```

Using colorbar works for me but I have GMTdev and maybe we fixed some problem related to it (there have been tons of fixes after 6.0).

You can try a very recent GMT build from  
[http://www.joa-quim.pt/mirone/downloads/gmt.html](http://www.joa-quim.pt/mirone/downloads/gmt.html)

---

<div class="post-metadata">

**Author:** ![richannan](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@richannan](https://forum.generic-mapping-tools.org/u/richannan)\
**Post date:** [June 9, 2020, 6:12am UTC](https://forum.generic-mapping-tools.org/t/colorbar-giving-error-in-gmtmex/530/3 "2020-06-09T06:12:54Z")

</div>

@Joaquim thank you very for the response. I will check the link up. Big-ups for the good works
