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

Modifier +s not working when the symbol code is given in the last column of the input #66

Closed
seisman opened this issue Sep 13, 2018 · 1 comment

Comments

@seisman
Copy link
Member

seisman commented Sep 13, 2018

Description of the problem
According to the documentation, one can simply give x and y coordinates of start and end point when plotting vectors with +s modifier.

**+s** means the input *angle*, *length* are instead the *x*, *y*
coordinates of the vector end point.

Full script that generated the error

The following script plots two arrows, one with symbol code in the command line and the other one in the last column of the input.

gmt begin GMT_arrows png
echo 0.5 1.5 4.5 1.5 | gmt plot -R0/5/0/5 -Baf -JX1.75i -Sv0.2i+s+b+e -W1.5p -Gred
echo 0.5 3.5 4.5 3.5 v0.2i+s+b+e | gmt plot -R0/5/0/5 -Baf -JX1.75i -S -W1.5p -Gred
gmt end

Output figure:
gmt_arrows

System information

  • Operating system: macOS
  • Version of GMT: 6.0.0 c1a5c7c
@PaulWessel
Copy link
Member

I am fixing this issue. I expect using +s in the data file will work unless you are specially formatted coordinates lind ddd:mm:ss since the data parser probably may not handle a sudden switch of column format. However, I have not checked to see if that is true, but my fix for this issue works. I will create a pull request shortly.

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

No branches or pull requests

2 participants