Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain why the FONT settings for colorbars is apparently not working. #8419

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
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
Explain why the FONT settings for colorbars is apparently not working.
  • Loading branch information
joa-quim committed Mar 28, 2024
commit 3393356db0c7561903694f2796d0e7944c125718
9 changes: 6 additions & 3 deletions doc/rst/source/colorbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ setting the option |-I|. Colors may be spaced according to a linear
scale, all be equal size, or by providing a file with individual tile
widths. The font used for the annotations along the scale is specified by
:term:`FONT_ANNOT_PRIMARY` while any unit placed at the side of the
bar is controlled by :term:`FONT_ANNOT_SECONDARY`. If a label along the bar
is requested, it is plotted with :term:`FONT_LABEL`. For a full overview of CPTs,
see the Technical Reference section on :ref:`Color palette tables <CPT_section>`.
bar is controlled by :term:`FONT_ANNOT_SECONDARY`. If a label along the bar is requested, it is plotted with
:term:`FONT_LABEL`. But mind you that the modern mode theme scales down the size of annotations and labels
based on the colorbar length for improved legibility. So, in modern mode scripts it might look that these
parameter settings are not working correctly. If you may want to increase font sizes to compensate the
scaling effect the solution is to use the online ``--FONT_ANNOT_PRIMARY=...`` construct.
For a full overview of CPTs, see the Technical Reference section on :ref:`Color palette tables <CPT_section>`.

.. figure:: /_images/GMT_colorbar.*
:width: 500 px
Expand Down