Add v (vector) to custom symbol kit, plus handle azimuth vs angle#5606
Merged
PaulWessel merged 6 commits intomasterfrom Aug 22, 2021
Merged
Add v (vector) to custom symbol kit, plus handle azimuth vs angle#5606PaulWessel merged 6 commits intomasterfrom
PaulWessel merged 6 commits intomasterfrom
Conversation
It may be useful to draw a simple one-headed vactor as part of a custom symbol, but we had no such capability. This is now added. The vector has a head at the end and the size is derived from the current pen thickness. Head outline is always drawn, and head may be filled if -G is used. This PR also clarifies how to ensure angles are considered as Cartesian vs geographic azimuths, and allows a trailing a to an angular constant to mean azimuth.
Esteban82
approved these changes
Aug 22, 2021
Member
There was a problem hiding this comment.
I run the GMT_angle-azim.sh and I get this figure. As far as I know it is ok.
@PaulWessel this could be used in animation02, right?
PD: Don't worry Paul. I just solve it (replace plot -Sv by -SV).
Member
Author
|
You could, but not sure if it buys you anything, The annotations perhaps? Probably worth a try to see if it looks good etc with the font size. |
Member
Ok, I will try it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

It may be useful to draw a simple one-headed vector as part of a custom symbol, but we had no such capability and the only way to combine a simple vector with a custom symbol was to plot things twice. This PR adds v as a new known symbol to the table displayed in the appendix (and it takes x, y, angle, length). To keep things simple there are some hard-wired decision being made:
This PR also clarifies how to ensure angles are considered as Cartesian vs geographic azimuths, and allows a trailing a to an angular constant to mean azimuth. Prior to this PR, it was not possible to draw an arc, wedge, or ellipse using azimuths, for instance.
All previous tests pass, but it would be helpful if @KristofKoch given his branch a try given his numerous custom symbols...