GenericMappingTools / GenericMappingTools/gmt

y-label option in subplot (-Byaf+l"...")

Open
#5,476 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

Hi,
```
> gmt --version
6.3.0_6065f93_2021.07.07
```
Here are three figures. Only the third one behaves as expected, the other two don't print `Pa` from `-Byaf+l"Pa"` in subplot environment :

```
gmt begin
gmt figure test_time png
gmt subplot begin 1x2 -Fs10c -M.5c/1c -A\(a\)+JTL+o-1c/.25c -SRl -R0/11/0/3000 -JX10ct/10c -Bxa1Of1Og1O -Byaf+l"Pa" --FORMAT_TIME_PRIMARY_MAP=abbreviated --FORMAT_DATE_MAP=o --TIME_UNIT=o
gmt subplot set
gmt basemap

gmt subplot set
gmt basemap
gmt subplot end

gmt figure test_zone_shift png
gmt subplot begin 1x2 -Fs10c -M.5c/1c -A\(a\)+JTL+o-1c/.25c -SRl -R45/95/0/200 -JX10c -Byaf+l"Pa" -Bxa10f10g5+5+l"Longitude"
gmt subplot set
gmt basemap

gmt subplot set
gmt basemap
gmt subplot end

gmt figure test_zone_noshift png
gmt subplot begin 1x2 -Fs10c -M.5c/1c -A\(a\)+JTL+o-1c/.25c -SRl -R140/260/0/200 -JX10c -Byaf+l"Pa" -Bxa20f10g10+l"Longitude"
gmt subplot set
gmt basemap

gmt subplot set
gmt basemap
gmt subplot end

gmt end show
```

Note for the first figure (test_time.png) : when I use my data the x-axis shows "Jan - Feb - ... - Dec" as it should. I don't know why `gmt basemap` doesn't here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.