You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
colorbar: auto-scaling of font has also effect on frame thickness and tick length #9317
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)
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
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.
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
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
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
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.
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.
Activity
joa-quim commentedon Nov 23, 2026
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.
yvonnefroehlich commentedon Nov 23, 2026
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?
no -H
no -H
no -H
no -H
with -H
[-]colorbar: -H affects frame and ticks of colorbar[/-][+]colorbar: auto-scaling of font has also effect on frame thickness and tick length[/+]joa-quim commentedon Nov 23, 2026
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.
yvonnefroehlich commentedon Nov 23, 2026
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.