Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid annotation phase on exponential axes #8568

Open
BerginJay opened this issue Aug 22, 2024 · 0 comments
Open

Invalid annotation phase on exponential axes #8568

BerginJay opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BerginJay
Copy link
Contributor

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
@BerginJay BerginJay added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant