Skip to content

DOC/colorbar: Improve note regarding no_font_scaling - #4994

Merged
seisman merged 1 commit into
mainfrom
improve-note-cb-H
Nov 24, 2026
Merged

seisman merged 1 commit into
mainfrom
improve-note-cb-H

Conversation

@yvonnefroehlich

Copy link
Copy Markdown
Member

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=True and 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_scaling is still acceptable as alias.

Patches: #4783

Preview:

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.20.0 milestone Nov 23, 2026
@yvonnefroehlich yvonnefroehlich self-assigned this Nov 23, 2026
@yvonnefroehlich yvonnefroehlich added the documentation Improvements or additions to documentation label Nov 23, 2026
@seisman
seisman merged commit 12bc42c into main Nov 24, 2026
25 of 26 checks passed
@seisman
seisman deleted the improve-note-cb-H branch November 24, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants