Skip to content

colorbar: auto-scaling of font has also effect on frame thickness and tick length #9317

Done

Description

@yvonnefroehlich

The newly added -H flag for reverting the automatic font size scaling of the colorbar related texts affects the frame thickness and ticks length of the colorbar.

no -H (auto-scaling applied) with -H (auto-scaling reverted)
colorbar_no_H_01 colorbar_with_H_01
gmt begin colorbar_no_H
   gmt basemap -R-1/1/-1/1 -JX5c -B1
   gmt colorbar -Chawaii -DjMC+w4c+h -Bx+llabel_of_colorbar
gmt end show

gmt begin colorbar_with_H
   gmt basemap -R-1/1/-1/1 -JX5c -B1
   gmt colorbar -Chawaii -DjMC+w4c+h -Bx+llabel_of_colorbar -H
gmt end show
  • Operating system: Windows
  • GMT version: 6.7.0_fc1ec77_2026.06.06

Activity

  1. joa-quim commented on Nov 23, 2026

    @joa-quim
    Member

    Hmm, to know that we would need to compare to what was done before the auto-scaling, because the auto-scaling was created exactly to address issues like this and -H reverts the as.

  2. yvonnefroehlich commented on Nov 23, 2026

    @yvonnefroehlich
    MemberAuthor

    I looked into this in more detail and it turns out, that it is somehow the other way around: Applying -H reverts exactly the changes introduced due to the auto-scaling ("GMT 6.4.0" vs. "GMT dev with -H"), but it looks like with introducing this auto-font scaling there were also changes introduced regarding the frame thickness and tick length of the colorbar ("GMT 6.4.0" vs. "GMT 6.5.0 no -H"). Maybe this was by intention?

    GMT 6.4.0 GMT 6.5.0
    no -H
    GMT 6.6.0
    no -H
    GMT 6.7.0
    no -H
    GMT dev
    no -H
    GMT dev
    with -H
    colorbar_no_H_gmt640_01 colorbar_no_H_gmt650_01 colorbar_no_H_gmt660_01 colorbar_no_H_gmt670_01 colorbar_no_H_gmtdev_01 colorbar_with_H_gmtdev_01
    gmt begin colorbar_no_H_gmtXXX
       gmt basemap -R-1/1/-1/1 -JX5c -B1
       gmt colorbar -Chawaii -DjTC+w4c+h -Bx+llabel_of_colorbar
       gmt colorbar -Chawaii -DjBC+w2c+h -Bx+llabel_of_colorbar
    gmt end show
    
    gmt begin colorbar_with_H_gmtdev
       gmt basemap -R-1/1/-1/1 -JX5c -B1
       gmt colorbar -Chawaii -DjTC+w4c+h -Bx+llabel_of_colorbar -H
       gmt colorbar -Chawaii -DjBCC+w2c+h -Bx+llabel_of_colorbar -H
    gmt end show
  3. changed the title [-]colorbar: -H affects frame and ticks of colorbar[/-] [+]colorbar: auto-scaling of font has also effect on frame thickness and tick length[/+] on Nov 23, 2026
  4. joa-quim commented on Nov 23, 2026

    @joa-quim
    Member

    But auto-scaling was meant to change frames and ticks too. The colorbars were left behind on original changes and it was the catch up for them that gave origin to all these issues.

  5. yvonnefroehlich commented on Nov 23, 2026

    @yvonnefroehlich
    MemberAuthor

    But auto-scaling was meant to change frames and ticks too. The colorbars were left behind on original changes and it was the catch up for them that gave origin to all these issues.

    Ah OK, this was something I did not know or notice so far. I though only the font size was changed. Then it looks like everything works as intended. I am sorry for causing confusions here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions