Bug #1126

Transparency does not work as it should in grdcontour

Added by Michael 5 months ago. Updated 17 days ago.

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

100%

Category:-
Target version:Candidate for next minor release
Affected version:6.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

History

#1 Updated by Paul 17 days ago

  • Assignee set to Paul
  • Target version set to Candidate for next minor release
  • % Done changed from 0 to 100
  • Affected version changed from 5.x-svn to 6.x-svn

Should also be fixed in r19271 trunk. Added test to make sure.

#2 Updated by Paul 17 days ago

  • Status changed from New to Resolved

Forgot to change status.

Also available in: Atom PDF