Bug #1184

Issues with grdcontour -W[type]pen[+c[l|f]]

Added by Andreas about 1 month ago. Updated about 1 month ago.

Status:ResolvedStart date:2018-01-18
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:6.x-svn Platform:


Also described in http://gmt.soest.hawaii.edu/boards/1/topics/6376.

grdcontour has some problems with the -W[type]pen[+c[l|f]] option. See script and partly messed up figure.

Omitting [type]:

-W+c → does not color annotations
-W+cl → "grdcontour [ERROR]: Pen name l not recognized!"
-W+cf → grdcontour [ERROR]: Pen name f not recognized!

-Wc+cf and -Wa+cf → annotations do not get color according to CPT file.

Also, the type specified does not appear to be respected. -Wa and -Wc give same result, regardless of the contour line being annotated or not.

On 6.0.0_r19518.

grdcontour_W.sh Magnifier (1.13 KB) Andreas, 2018-01-18 09:50

grdcontour_W.pdf (80.9 KB) Andreas, 2018-01-18 09:50

pen_choice.pdf (71.1 KB) Paul, 2018-01-18 15:05


#1 Updated by Paul about 1 month ago

  • File pen_choice.pdf added
  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100

Thanks for this, turned into a new GMT test. I fixed a few issues in the -W parsing as well as in the font color assignment and now all the cases work for me; see attached PDF. Note that the coloring effects are not split between annotated and regular contours - your choice affects both hence all the rows in the plot are the same. In r19624.

Also available in: Atom PDF