Skip to content

Conversation

@PaulWessel
Copy link
Member

This PR addresses these three items in #6190:

(3) Allow +z in plot and plot3 to accept components for a geovector and have them scaled to map distances. Properly compute what azimuth and length this corresponds to and plot the geovector accordingly.
(4) Disable (or give error) +z in grdvector since here we control polar vs component via -A.
(7) Accept a default scale of 1 if +z has no argument (currently this would give junk).

No tests are affected.

Some examples of geovector components calls:

echo 0 60 100 100 | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z -W1p -Gred -pdf map
echo 0 60 100k 100M | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z -W1p -Gred -pdf map
echo 0 60 1 2 | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z100k -W1p -Gred -pdf map

This PR addresses those items in #6190.  No tests are affected.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Jan 5, 2022
@PaulWessel PaulWessel added this to the 6.4.0 milestone Jan 5, 2022
@PaulWessel PaulWessel self-assigned this Jan 5, 2022
@Esteban82
Copy link
Member

Are these ok?

map1
map2
map3

Copy link
Member

@Esteban82 Esteban82 left a comment

Choose a reason for hiding this comment

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

I approve because my tests looks fine.

@PaulWessel
Copy link
Member Author

I think so: 100 km is a bit shorter than 2 degrees longitude at 60 N

@PaulWessel PaulWessel merged commit e776117 into master Jan 5, 2022
@PaulWessel PaulWessel deleted the vector_improv1 branch January 5, 2022 03:49
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants