Skip to content

Invalid annotation phase on exponential axes #8568

Closed

Description

@BerginJay

Description of the problem

When setting the figure frame, the offset (phase) of annotations is invalid on the exponent axes. For example, setting an exponent axis ranging from 0.05 to 1 scaled by the exponent of 0.2, the annotation interval is 0.2, and the phase is 0.1:

gmt basemap -JX10cp0.2 -R0.05/1/0/1 -Bxa0.2+0.1f0.05 -pdf test-exp-phase

We want to annotate it in the positions 0.1, 0.3,..., but this command produces results marked in 0.2, 0.4,..., same with the command without phase:

gmt basemap -JX10cp0.2 -R0.05/1/0/1 -Bxa0.2f0.05 -pdf test-exp

On the contrary, on the linear axes, it produces correct results:

gmt basemap -JX10c -R0.05/1/0/1 -Bxa0.2+0.1f0.05 -pdf test-lin

Full script that generated the error

gmt basemap -JX10cp0.2 -R0.05/1/0/1 -Bxa0.2+0.1f0.05 -pdf test-exp-phase
gmt basemap -JX10cp0.2 -R0.05/1/0/1 -Bxa0.2f0.05 -pdf test-exp
gmt basemap -JX10c -R0.05/1/0/1 -Bxa0.2+0.1f0.05 -pdf test-lin

System information

  • Operating system: macOS 13.6.4
  • GMT version (gmt --version): 6.5.0

Activity

  1. added
    bug
    on Aug 22, 2024
  2. added a commit that references this issue on May 25, 2026
    4a8878c
  3. added
    add-changelog
    on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    add-changelogbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions