PyGMT colorbar length settings

Hello dear GMT community,

I will ask probably a very simple question regarding the colorbar. Nevertheless, I couldn’t come up with a solution by reading the documentation.

I want to be able to set a colorbar length to any desired percentage relative to the map side in PyGMT. In the GMT docs, it is written that the length is set to 80% of the map side, so I was wondering if there is a possibility to change that to any desired value, e.g. 100%?

Thank you.