gmt basemap -Bs -Bxaf draws full frame with WS axes annotated

Open
#8,827 12 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c

Research direction

Reproduce the report with gmt basemap -R0/1/0/1 -JX5c -Bs -Bxaf -png test, then compare the generated frame with the requested single X axis, ticks, and no annotations. Check the basemap option handling first; done means -Bs -Bxaf, -Bx, and -Bxa no longer draw unintended WS axes or annotations while the intended ticks remain.

Written by the indexing model from the issue text.

Description

bug

gmt basemap -Bs -Bxaf draws full frame with WS axes annotated instead of just one X axis with ticks and no annotations and no other axes. I believe this is likely a bug. Same with -Bx, -Bxa.

I wanted to plot an X axis with ticks but no annotations for adding annotations externally for a complex plot.

I call gmt basemap -R0/1/0/1 -JX5c -Bs -Bxaf -png test and get a full frame with WS axes annotated and funny unproportionally long ticks:

Image

after some testing I've got the needed result by running gmt basemap -R0/1/0/1 -Jx5c -Bs -B -png test

Image
Dominant language
C
Stars
997
Forks
420
Avg merge
13h 27m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/gmt

All issues in GenericMappingTools/gmt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.