label font for colorbar is smaller than FONT_LABEL?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- c
- Domain
- data-visualization
Research direction
Start by running the provided GMT script and comparing the colorbar label with the matching gmt text output. Trace how colorbar applies FONT_LABEL and determine whether the rendered sizes should match; done when the behavior is corrected or its intentional difference is clearly established and tested.
Written by the indexing model from the issue text.
Description
I am using GMT 6.5.0 so apologies if this is already fixed (or not a bug).
Description of the problem
When setting the font size for my colorbar label with --FONT_LABEL it renders as smaller than if I used the same font with pstext. Is this intended? I can change the size with --FONT_LABEL, it's just that the actual sizes don't seem to match up.
(From testing it seems that setting axis labels on the main plot, e.g. in psbasemap -Bx+l, results in the same size text as pstext gives me, so it is colorbar that is producing a smaller font than specified with FONT_LABEL.)
Full script that generated the error
gmt begin labeltest png
gmt grdimage @earth_relief_01m -R-10/10/48/60 -Coleron -JM10c -BneSW -Bxaf -Byaf
gmt colorbar -Bxa1000+l"Elevation (m)" --FONT_LABEL=20p,Helvetica
echo "Elevation (m)" | gmt text -F+f20p,Helvetica+cBC -D0/-3c -N
gmt end
Actual outcome
Expected outcome
I would expect the two lines of text saying "Elevation (m)" to be the same size, since they are both set to 20p,Helvetica as far as I can tell.
System information
- Operating system: Debian GNU/Linux 12 (bookworm)
- GMT version (
gmt --version): 6.5.0
- Dominant language
- C
- Stars
- 997
- Forks
- 420
- Avg merge
- 13h 27m
- Merged PRs (30d)
- 47
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenericMappingTools/gmt
-
Add support for SCM 9.0.0 to GMTPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GenericMappingTools/gmt#9316 · 10 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenericMappingTools/gmt#5767 · 15 comments ·
Maintainers usually reply within 1 day
-
discussion
Difficulty 5/5 Over a week Newbie friendliness 35/100
GenericMappingTools/gmt#9343 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
GenericMappingTools/gmt#9331 · 1 reaction ·
Maintainers usually reply within 1 day
-
histogram: the min/max setting in -T is ignored when -R is setPossibly taken @seisman claimed this 1 day ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
GenericMappingTools/gmt#9330 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in GenericMappingTools/gmt
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Broken links in reference manualPossibly taken @farisbasha claimed this 14 days ago. Opencore:meson
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18934 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
libsndfile/libsndfile#1239 ·