40
40
/* Control structure for psxyz */
41
41
42
42
struct PSXYZ_CTRL {
43
- struct PSXYZ_A { /* -A[m|y|p|x|r|t|step ] */
43
+ struct PSXYZ_A { /* -A[x|y ] */
44
44
bool active ;
45
45
unsigned int mode ;
46
46
double step ;
@@ -173,7 +173,7 @@ static int usage (struct GMTAPI_CTRL *API, int level) {
173
173
const char * mod_name = & name [4 ]; /* To skip the leading gmt for usage messages */
174
174
const char * T [2 ] = {" [-T]" , "" };
175
175
if (level == GMT_MODULE_PURPOSE ) return (GMT_NOERROR );
176
- GMT_Usage (API , 0 , "usage: %s [<table>] %s %s [%s] [%s] [-A[m|p|r|t| x|y]] [-C<cpt>] [-D<dx>/<dy>[/<dz>]] [-G<fill>] "
176
+ GMT_Usage (API , 0 , "usage: %s [<table>] %s %s [%s] [%s] [-A[x|y]] [-C<cpt>] [-D<dx>/<dy>[/<dz>]] [-G<fill>] "
177
177
"[-H[<scale>]] [-I[<intens>]] %s [%s] [-N[c|r]] %s %s[-Q] [-S[<symbol>][<size>][/size_y]]%s [%s] [%s] [-W[<pen>][<attr>]] "
178
178
"[%s] [%s] [-Z<value>|<file>[+t|T]] [%s] [%s] %s[%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s] [%s]\n" ,
179
179
name , GMT_J_OPT , GMT_Rgeoz_OPT , GMT_B_OPT , GMT_Jz_OPT , API -> K_OPT , PLOT_L_OPT , API -> O_OPT , API -> P_OPT ,
@@ -187,15 +187,15 @@ static int usage (struct GMTAPI_CTRL *API, int level) {
187
187
GMT_Option (API , "<,J-Z,R3" );
188
188
GMT_Message (API , GMT_TIME_NONE , "\n OPTIONAL ARGUMENTS:\n" );
189
189
GMT_Option (API , "B-" );
190
- GMT_Usage (API , 1 , "\n-A[m|p|r|t| x|y]" );
190
+ GMT_Usage (API , 1 , "\n-A[x|y]" );
191
191
GMT_Usage (API , -2 , "Suppress drawing geographic line segments as great circle arcs, i.e., draw "
192
- "straight lines instead. Six optional directives instead convert paths to staircase curves:" );
193
- GMT_Usage (API , 3 , "m : First follow meridians , then parallels when connecting geographic points ." );
194
- GMT_Usage (API , 3 , "p : First follow parallels , then meridians when connecting geographic point ." );
195
- GMT_Usage (API , 3 , "r: First follow radius, then theta for staircase curves for Polar projection." );
196
- GMT_Usage ( API , 3 , "t: First follow theta, then radius for staircase curves for Polar projection." );
197
- GMT_Usage ( API , 3 , "x: First follow x, then y for staircase curves for Cartesian projections." );
198
- GMT_Usage ( API , 3 , "y: First follow y, then x for staircase curves for Cartesian projections ." );
192
+ "straight lines instead. Two optional directives instead convert paths to staircase curves:" );
193
+ GMT_Usage (API , 3 , "x : First follow x , then y for staircase curves ." );
194
+ GMT_Usage (API , 3 , "y : First follow y , then x for staircase curves ." );
195
+ GMT_Usage (API , -2 , "Here, x and y have the following meanings: "
196
+ "For Cartesian projections, x and y are the X- and Y-axis; "
197
+ "For gragraphic projections, x and y are parallels and meridians; "
198
+ "For polar projections, x and y are theta and radius ." );
199
199
GMT_Usage (API , 1 , "\n-C<cpt>|<color1>,<color2>[,<color3>,...]" );
200
200
GMT_Usage (API , -2 , "Assign symbol colors based on z-value in 3rd column. "
201
201
"Note: requires -S. Without -S, %s excepts lines/polygons "
@@ -422,6 +422,7 @@ static int parse (struct GMT_CTRL *GMT, struct PSXYZ_CTRL *Ctrl, struct GMT_OPTI
422
422
423
423
case 'A' : /* Turn off draw_arc mode */
424
424
n_errors += gmt_M_repeated_module_option (API , Ctrl -> A .active );
425
+ /* There are 6 optional directives but only x|y are documented since 6.6.0 */
425
426
switch (opt -> arg [0 ]) {
426
427
case 'm' : case 'y' : case 'r' : Ctrl -> A .mode = GMT_STAIRS_Y ; break ;
427
428
case 'p' : case 'x' : case 't' : Ctrl -> A .mode = GMT_STAIRS_X ; break ;
0 commit comments