Issue with symbol color mapping using CPT

Hi, I’m having trouble plotting colored squares using -Ss and a CPT file. The plot only shows the square outline without any fill. If I don’t use -Z , the color bar doesn’t appear. When I add -G+z , the squares are filled, but only in black—not with the CPT colors. The color bar itself displays correctly, so the CPT file and data seem fine. Any idea what I might be missing?

I am using GMT ver 6.3

here is the code

tail -n +4 $finput | awk ‘$3*-1>$7 && $10!=0{ print $1, $2, $10}’|
gmt plot -J$j -R$reg -B -Ss0.15c -C$cptfile1 -Z

Hi! I think that you need to include -G+z and you shouldn’t use -Z, which is used to control the filling of polygons, not symbols. At least it works like that in version 6.5.

Jose