Skip to content

Let psxy -T without -B skip the check for -R -J - #3672

Merged
seisman merged 3 commits into
masterfrom
no-RJ-needed-with-T
Jul 18, 2020
Merged

seisman merged 3 commits into
masterfrom
no-RJ-needed-with-T

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

Since no projection is needed to in this case (presumably to set -X -Y only) then we dont need to complain if -R -J are not set. This means a gmt psxy -T -X -Y call can be the first in a plot sequence without running afoul of no -R -J history.
This PR also adds documentation of -T to the classic section of psxy.

Since no projection is needed to iin this case (presumably to set -X -Y only) then we dont need to complain if -R -J are not set.
@PaulWessel
PaulWessel requested a review from seisman July 18, 2020 02:52
@seisman

seisman commented Jul 18, 2020

Copy link
Copy Markdown
Member

This PR doesn't work. gmt plot -T -X1c -Y1c is waiting for stdin input.

@PaulWessel

Copy link
Copy Markdown
Contributor Author

Yep, I only tested classic... SO in modern, we are trying to auto-determine the region from the data file... I will need to intervene in gmt_init_module based on -T. Stay tuned.

@PaulWessel

Copy link
Copy Markdown
Contributor Author

This works for me now:

gmt begin map
  gmt basemap -R0/4/0/4 -JX4i -B1
  gmt plot -T -X2i
  gmt basemap -R0/4/0/4 -JX4i -B1
 gmt end show

@seisman seisman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Backport to 6.1?

@PaulWessel PaulWessel added the backport 6.1 Backport this PR to 6.1 branch label Jul 18, 2020
@seisman
seisman merged commit 5e13b22 into master Jul 18, 2020
@seisman
seisman deleted the no-RJ-needed-with-T branch July 18, 2020 03:40
github-actions Bot pushed a commit that referenced this pull request Jul 18, 2020
Since no projection is needed to iin this case (presumably to set -X -Y only) then we dont need to complain if -R -J are not set.
seisman pushed a commit that referenced this pull request Jul 18, 2020
Since no projection is needed to iin this case (presumably to set -X -Y only) then we dont need to complain if -R -J are not set.

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