Skip to content

Set maximum annotation interval to 60 for some projections #4987

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

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

maxrjones
Copy link
Member

Description of proposed changes

Fixes this problem: #4955 (comment)

While the themes branch made this problem worse (i.e., occur for larger maps), even before 6.1.1 small maps (~5cm width) with the Mollweide projection would only have one latitude annotation. This PR makes the maximum auto annotation interval 60 degrees for Mollweide, Hammer, and Eckert 4 projections because the frame slope is too gently at higher latitudes for automatic annotations to be placed.

Command:
gmt basemap -Rg -JW15c -B -png map
Before:
image

After:
image

Fixes #

Reminders

  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

@maxrjones maxrjones requested review from seisman and PaulWessel March 18, 2021 17:41
@maxrjones maxrjones merged commit b8baea6 into master Mar 18, 2021
@maxrjones maxrjones deleted the auto-intervals-Jw branch March 18, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants