Skip to content

Update PS files for failing tests after #4954 and #4957 - #4962

Merged
maxrjones merged 2 commits into
masterfrom
ps-updates
Mar 14, 2021
Merged

maxrjones merged 2 commits into
masterfrom
ps-updates

Conversation

@maxrjones

Copy link
Copy Markdown
Member

Description of proposed changes

Updates PostScript files for tests that starting failing after #4954 and #4957. The PS files for two failing tests were not updated because of missing annotations:

 98 - doc/scripts/GMT_gnomonic.sh (Failed)
133 - doc/scripts/GMT_perspective.sh (Failed)

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 a review from PaulWessel March 14, 2021 20:38
@maxrjones
maxrjones merged commit 0db34a7 into master Mar 14, 2021
@maxrjones
maxrjones deleted the ps-updates branch March 14, 2021 20:40
@PaulWessel

Copy link
Copy Markdown
Contributor

OK, down to those two. I have a family zoom the next 2 hours so will resume then. Let me now if you figure anything out.

@PaulWessel

Copy link
Copy Markdown
Contributor

Clearly the perspective view one is affected by the default WSrt but here S is curved and not used so we want N instead. I think not annotating E is OK. Without checking, not sure how hard to detect the type of boundaries here, so one cheap solution is to revert to WESN in these cases. I think it is hard to know exactly how the window view affects what the borders look like. Once plotted, the user can select axes manually but at least we show what it looks like for alll.
Gnomonic: Not sure why it turned off but presumably related to WESN.

@maxrjones

Copy link
Copy Markdown
Member Author

Clearly the perspective view one is affected by the default WSrt but here S is curved and not used so we want N instead. I think not annotating E is OK. Without checking, not sure how hard to detect the type of boundaries here, so one cheap solution is to revert to WESN in these cases. I think it is hard to know exactly how the window view affects what the borders look like. Once plotted, the user can select axes manually but at least we show what it looks like for alll.
Gnomonic: Not sure why it turned off but presumably related to WESN.

Yes, the east and north axes are plotted on the Gnomonic plot, so WESN works but WEsn does not show any annotations (before or after themes).

@PaulWessel

Copy link
Copy Markdown
Contributor

Gnomonic was the last projection to even get any annotations (some years ago) as it was messy. Our simplest fix for these two projections would be to default to WESN. It should be documented though, maybe on the themes page, and I suspect these two are used so infrequently that maybe a warning message would not be bothersome, saying that due to the nature of this projection, we have reset to WESN (again, unless the user changed MAP_ANNOT_AXES themselves).

@maxrjones

Copy link
Copy Markdown
Member Author

Gnomonic was the last projection to even get any annotations (some years ago) as it was messy. Our simplest fix for these two projections would be to default to WESN. It should be documented though, maybe on the themes page, and I suspect these two are used so infrequently that maybe a warning message would not be bothersome, saying that due to the nature of this projection, we have reset to WESN (again, unless the user changed MAP_ANNOT_AXES themselves).

It will only default to WESN for MAP_FRAME_AXES=auto, correct? This seems fine and we can add it to the MAP_FRAME_AXES info here: https://docs.generic-mapping-tools.org/dev/cookbook/features.html#automatic-gmt-settings

@PaulWessel

Copy link
Copy Markdown
Contributor

Yes, let me look at that setup. Need to know the projection so that is the same place where font sizes etc are set.

This branch was previously deployed

1 inactive deployment
Preview — 95feae01 Deployed Mar 14, 2021 by vercel[bot]
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