Repository navigation
DOC/colorbar: Improve note regarding no_font_scaling - #4994
Merged
Merged
Conversation
seisman
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
I was not aware of that in addition to the auto-scaling of the font, changes of the frame thickness and the tick length of the colorbar were introduced with GMT 6.5.0. Thus, the in GMT 6.7.0 newly introduced -H flag does not only revert the auto-scaling of the font but also the changes of frame thickness and tick length (xref: discussions at GenericMappingTools/gmt#9317). This PR aims to adjust the note in the PyGMT docs, to clarify that setting
no_font_scaling=Trueand applying the scaling factor via the given formula do not lead to identical results.From the questions on the GMT forum I got, the confusions were mainly based on the different behavior of the fonts of colobar related text. Thus, I feel
no_font_scalingis still acceptable as alias.Patches: #4783
Preview:
Guidelines
Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash command is:
/format: automatically format and lint the code