You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rotating the symbols of a decorated line does not work ("+aangle") #7591
+aangle
Force symbols at a fixed angle, +an for line-normal, or +ap for line-parallel [Default].
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).
Mystery so far. At the end of gmtsupport_add_decoration we have
/* Build record with Cartesian (hence col = GMT_Z) "x y angle symbol" since we are using -Jx1i */
S->data[GMT_X][S->n_rows] = L->x;
S->data[GMT_Y][S->n_rows] = L->y;
S->data[GMT_Z][S->n_rows] = gmt_M_to_inch (GMT, G->size);
S->data[3][S->n_rows] = L->line_angle; /* Change this in inches internally instead of string */
S->text[S->n_rows++] = strdup (G->symbol_code);
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.
Activity
PaulWessel commentedon Nov 25, 2023
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.
Fix bug and allow +apangle for decorated lines
Fix bug and allow +apangle for decorated lines (#8182)