-
Notifications
You must be signed in to change notification settings - Fork 362
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
Rotating the symbols of a decorated line does not work ("+aangle") #7591
Labels
bug
Something isn't working
Comments
7 tasks
Mystery so far. At the end of gmtsupport_add_decoration we have
G->line_angle is 20 as given, but S->data[3][S->n_rows] which is S->data[3][0] for the first point remains 0 after the assignment. How is that possible? When the temp file is built and passed to plot again it has x, y ,size, angle, but angle is zero for all record. Hence the result above. |
PaulWessel
added a commit
that referenced
this issue
Dec 11, 2023
This fixes the bug in #7591. While at it, we allow +apangle to let the symbol angle deviate by angle from the line's angle.+aangle still sets a fixed angle regardless of angle contortions.
PaulWessel
added a commit
that referenced
this issue
Dec 11, 2023
* Fix failure to honor +a angle in decorated lines Simply did not pass the fixed angle when it was set and ended up passing the line angle which was zero. * Fix bug and allow +apangle for decorated lines This fixes the bug in #7591. While at it, we allow +apangle to let the symbol angle deviate by angle from the line's angle.+aangle still sets a fixed angle regardless of angle contortions.
Merged
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
Based on the documentation at https://docs.generic-mapping-tools.org/dev/plot.html#s it should be possible to rotate the symbols of a decorated line by appending +aangle:
However, so far this does not work for me. For quoted lines, it works to rotate the label by appending +aangle.
Related PyGMT comment GenericMappingTools/pygmt#2564 (comment).
Full script that generated the error
Input data: test_data_deco_line.txt
Full error message
No error message occurs.
Actual outcome
Expected outcome
The squares along the line should be rotated by 20 degrees (counter-clockwise from the horizontal); similar to quoted lines:
System information
gmt --version
): 6.4.0 as well as 6.5.0_95c3431_2023.06.26The text was updated successfully, but these errors were encountered: