Skip to content
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
13590f6
Add note regarding automatic fontsize scaling
yvonnefroehlich Sep 29, 2025
0c55a48
Add more information
yvonnefroehlich Sep 29, 2025
1fded9b
Use math mode
yvonnefroehlich Sep 29, 2025
f56ae84
Fix math synthax
yvonnefroehlich Sep 29, 2025
0e27f13
Remove underscore
yvonnefroehlich Sep 29, 2025
2e29446
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Sep 29, 2025
693be21
Add more information
yvonnefroehlich Sep 29, 2025
4e05d24
Merge remote-tracking branch 'origin/add-note-fontsize-cb' into add-n…
yvonnefroehlich Sep 29, 2025
8248cda
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Sep 29, 2025
c4066b8
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Sep 30, 2025
c9ea951
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Sep 30, 2025
19c3046
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Sep 30, 2025
b3c6ada
TEST: fix docs warning regarding pattern class
yvonnefroehlich Sep 30, 2025
35dad14
TEST: Use 'Parameters'
yvonnefroehlich Sep 30, 2025
7f05b32
Revert change
yvonnefroehlich Sep 30, 2025
d6bef9a
Improve formulation
yvonnefroehlich Sep 30, 2025
f514e26
Fix line length
yvonnefroehlich Sep 30, 2025
870be82
Improve formulation to account for all fontsizes and provide workaround
yvonnefroehlich Oct 1, 2025
3bdf1fd
Fix hilighting for code
yvonnefroehlich Oct 1, 2025
59c9518
Merge branch 'main' into add-note-fontsize-cb
yvonnefroehlich Oct 1, 2025
513840a
Improve formulation and grammar
yvonnefroehlich Oct 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pygmt/src/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ def colorbar(
linear scale, all be equal size, or by providing a file with individual
tile widths.

.. note::
For GMT >=6.5.0, the fontsizes of the colorbar x-label, x-annotations,
and y-label are scaled based on the width of the colorbar following
:math:`\sqrt{{colorbar\_width / 15}}`). To set a desired fontsize via the
GMT default parameters :gmt-term:`FONT_ANNOT_PRIMARY`,
:gmt-term:`FONT_ANNOT_SECONDARY`, and :gmt-term:`FONT_LABEL` (or jointly
:gmt-term:`FONT`) users have to divide the desired fontsize by the value
calculated with the formula given above before passing it to the default
parameters. To only affect fontsizes related to the colorbar, the
defaults can be changed locally only using ``with pygmt.config(...):``.

Full GMT docs at :gmt-docs:`colorbar.html`.

{aliases}
Expand Down
Loading