Bug #1125

gmtcontour does'nt respect font color which set by -A+f

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

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

100%

Category:-
Target version:Candidate for next bugfix 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 >test1.ps
gmt grdcontour -A+1+c50%+f12p,Times-Italic,blue+o+p2p,green+gwhite -Gl0/0/2/2 test.grd -JX10c -R0/2/0/2 -P -O >>test1.ps
@
The blue color in "12p,Times-Italic,blue" is ignored. Size and font family works fine. The text is always the same color as the contour line (with or without -W).

Svn r18510

Associated revisions

Revision 19270
Added by Paul 17 days ago

Address issue #1125

History

#1 Updated by Paul 4 months ago

  • Status changed from New to In Progress
  • Assignee set to Paul

I can confirm the problem and will have a look at solutions.

#2 Updated by Paul 4 months ago

Note to myself: The +f is parsed correctly and color is set to blue. But later, when
gmt_M_memcpy (L→rgb, &G→font_label.fill.rgb, 4, double);
the color has been reset to 0/0/0. So something is resetting or overriding the rgb field.

#3 Updated by Paul 17 days ago

  • Status changed from In Progress to Resolved
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100
  • Affected version changed from 5.x-svn to 6.x-svn

Sorry, forgot about this one. Should be fixed in r19270 trunk.

Also available in: Atom PDF