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

if -R -J is given with -T then we must deal with them #3675

Merged
merged 2 commits into from
Jul 18, 2020
Merged

Conversation

PaulWessel
Copy link
Member

The initial PR #3672 only called gmt_map_setup if -R -J was required but in fact we must of course call gmt_map_setup if -R -J is given.

The inisital PR only called map_setup if RJ was required but in fact we must call map_setup if -R -J is given.
@PaulWessel PaulWessel added the backport 6.1 Backport this PR to 6.1 branch label Jul 18, 2020
@PaulWessel PaulWessel requested a review from seisman July 18, 2020 04:42
@PaulWessel
Copy link
Member Author

At issue are uses like this:

gmt psxy -R0/360/-60/60 -JM5i -T -P -K -Xc

which implicitly requires map width (and map height for -Yc). So I am adding a check for that first.

@PaulWessel
Copy link
Member Author

Tests pass for me locally with this change. Let's make sure it works for you or CI before we merge.

@PaulWessel
Copy link
Member Author

I think this is still good go go, @seisman despite the late edit. Now, -Xc or -Yc will require -R -J.

@PaulWessel PaulWessel merged commit 8c508a0 into master Jul 18, 2020
@PaulWessel PaulWessel deleted the fix-no-RJ branch July 18, 2020 05:11
github-actions bot pushed a commit that referenced this pull request Jul 18, 2020
* if -R -J is given with -T then we must deal with them

The inisital PR only called map_setup if RJ was required but in fact we must call map_setup if -R -J is given.

* Update gmt_init.c
seisman pushed a commit that referenced this pull request Jul 18, 2020
* if -R -J is given with -T then we must deal with them

The inisital PR only called map_setup if RJ was required but in fact we must call map_setup if -R -J is given.

* Update gmt_init.c

Co-authored-by: Paul Wessel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 6.1 Backport this PR to 6.1 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants