GenericMappingTools / GenericMappingTools/gmt

Inconsistent frame behavior for single-figure and subplot mode

Open
#5,667 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

**Description of the problem**

_The issues was first reported by @ZMAlt in https://github.com/gmt-china/GMT_docs/issues/691#issuecomment-896450203._

Using `-BWSEN` without `-Baf`, the basemap doesn't show annotations and ticks for a single plot, but shows them in subplot mode. Not sure if this is a bug.

**Full script that generated the error**

Single figure:
```
gmt begin test1 png
gmt basemap -R0/4/0/4 -JX4c -BWSEN
gmt end show
```
![image](https://user-images.githubusercontent.com/3974108/129915447-1490137c-22f7-490f-9f8d-98a73ecbde85.png)

Same command in subplot mode:
```
gmt begin test1 png
gmt subplot begin 1x7 -Fs4c/4c -M5p/10p
gmt basemap -R0/4/0/4 -JX4c -BWSEN
gmt subplot end
gmt end show
```
![image](https://user-images.githubusercontent.com/3974108/129915536-07d367da-e606-4021-9f96-10aaf3493ebf.png)

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.