Bug #1126

Transparency does not work as it should in grdcontour

Added by Michael 3 months ago.

Status:NewStart date:2017-07-02
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected version:5.x-svn Platform:

Description

Code:
@
echo "0 0 0
1 0 1
2 0 0
0 1 1
1 1 2
2 1 1
0 2 0
1 2 1
2 2 0" | gmt xyz2grd -R0/2/0/2 -I1/1 -Gtest.grd

echo "0 red 2 blue" >test.cpt
gmt grdimage test.grd -Ctest.cpt -JX10c -R0/2/0/2 -Bx1 -By1 -BseWN -P -K >test2.ps
gmt grdcontour -A+1+c50%+f12p,Times-Roman,blue@50+o+p2p,green@20+gblack@60 -Gl0/0/2/2 test.grd -JX10c -R0/2/0/2 -W2p,magenta@100 -P -O >>test2.ps

sed -r 's%^1 0 1 C 0 /Normal PSL_transp$%%' test2.ps >right.ps

gmt psconvert -Tf -A1c test2.ps
gmt psconvert -Tf -A1c right.ps
@
test2.pdf does'nt contain any annotations, they are completely transparent, as specified in -W option but not in -A option.
But if we remove string "1 0 1 C 0 /Normal PSL_transp" from the output file, we get things right. Absence of text is unrelated here, this is a different bug #1125.

Svn r18510

Also available in: Atom PDF