43
43
44
44
struct PSXY_CTRL {
45
45
bool no_RJ_needed ; /* Special case of -T and no -B when -R -J is not required */
46
- struct PSXY_A { /* -A[m|y|p|x|r|t<step> ] */
46
+ struct PSXY_A { /* -A[x|y] ] */
47
47
bool active ;
48
48
unsigned int mode ;
49
49
double step ;
@@ -529,7 +529,7 @@ static int usage (struct GMTAPI_CTRL *API, int level) {
529
529
const char * mod_name = & name [4 ]; /* To skip the leading gmt for usage messages */
530
530
if (level == GMT_MODULE_PURPOSE ) return (GMT_NOERROR );
531
531
532
- GMT_Usage (API , 0 , "usage: %s [<table>] %s %s [-A[m|p|r|t| x|y]] [%s] [-C<cpt>] [-D<dx>/<dy>] [%s] [-F%s] [-G<fill>|+z] "
532
+ GMT_Usage (API , 0 , "usage: %s [<table>] %s %s [-A[x|y]] [%s] [-C<cpt>] [-D<dx>/<dy>] [%s] [-F%s] [-G<fill>|+z] "
533
533
"[-H[<scale>]] [-I[<intens>]] %s[%s] [-M[c|s][+g<fill>][+l<seclabel>][+p<pen>][+r[<pen>]][+y[<level>]]] [-N[c|r]] %s%s [-S[<symbol>][<size>]] [%s] [%s] [-W[<pen>][<attr>]] [%s] [%s] "
534
534
"[-Z<value>|<file>[+t|T]] [%s] [%s] %s[%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s]\n" ,
535
535
name , GMT_J_OPT , GMT_Rgeoz_OPT , GMT_B_OPT , PSXY_E_OPT , GMT_SEGMENTIZE3 , API -> K_OPT , PLOT_L_OPT , API -> O_OPT , API -> P_OPT ,
@@ -542,15 +542,15 @@ static int usage (struct GMTAPI_CTRL *API, int level) {
542
542
GMT_Message (API , GMT_TIME_NONE , " REQUIRED ARGUMENTS:\n" );
543
543
GMT_Option (API , "<,J-Z,R" );
544
544
GMT_Message (API , GMT_TIME_NONE , "\n OPTIONAL ARGUMENTS:\n" );
545
- GMT_Usage (API , 1 , "\n-A[m|p|r|t| x|y]" );
545
+ GMT_Usage (API , 1 , "\n-A[x|y]" );
546
546
GMT_Usage (API , -2 , "Suppress drawing geographic line segments as great circle arcs, i.e., draw "
547
- "straight lines instead. Six optional directives instead convert paths to staircase curves:" );
548
- GMT_Usage (API , 3 , "m : First follow meridians , then parallels when connecting geographic points ." );
549
- GMT_Usage (API , 3 , "p : First follow parallels , then meridians when connecting geographic point ." );
550
- GMT_Usage (API , 3 , "r: First follow radius, then theta for staircase curves for Polar projection." );
551
- GMT_Usage ( API , 3 , "t: First follow theta, then radius for staircase curves for Polar projection." );
552
- GMT_Usage ( API , 3 , "x: First follow x, then y for staircase curves for Cartesian projections." );
553
- GMT_Usage ( API , 3 , "y: First follow y, then x for staircase curves for Cartesian projections ." );
547
+ "straight lines instead. Two optional directives instead convert paths to staircase curves:" );
548
+ GMT_Usage (API , 3 , "x : First follow x , then y for staircase curves ." );
549
+ GMT_Usage (API , 3 , "y : First follow y , then x for staircase curves ." );
550
+ GMT_Usage (API , -2 , "Here, x and y have the following meanings: "
551
+ "For Cartesian projections, x and y are the X- and Y-axis; "
552
+ "For gragraphic projections, x and y are parallels and meridians; "
553
+ "For polar projections, x and y are theta and radius ." );
554
554
GMT_Option (API , "B-" );
555
555
GMT_Usage (API , 1 , "\n-C<cpt>|<color1>,<color2>[,<color3>,...]" );
556
556
GMT_Usage (API , -2 , "Assign symbol colors based on z-value in 3rd column. "
@@ -837,6 +837,7 @@ static int parse (struct GMT_CTRL *GMT, struct PSXY_CTRL *Ctrl, struct GMT_OPTIO
837
837
838
838
case 'A' : /* Turn off draw_arc mode */
839
839
n_errors += gmt_M_repeated_module_option (API , Ctrl -> A .active );
840
+ /* There are 6 optional directives but only x|y are documented since 6.6.0 */
840
841
switch (opt -> arg [0 ]) {
841
842
case 'm' : case 'y' : case 'r' : Ctrl -> A .mode = GMT_STAIRS_Y ; break ;
842
843
case 'p' : case 'x' : case 't' : Ctrl -> A .mode = GMT_STAIRS_X ; break ;
0 commit comments