Bug #893

pstext issue with frame

Added by Stine about 1 year ago. Updated 10 months ago.

Status:ClosedStart date:2016-04-25
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.2-svn Platform:

Description

Using the example from the documentation:

Having the file: tmp

This is an unmarked header record not starting with #
> 0 -0.5 13p 3i j
@%5%Figure 1.@%% This illustration shows nothing useful, but it still needs
a figure caption. Highlighted in @;255/0/0;red@;; you can see the locations
of cities where it is @\_impossible@\_ to get any good Thai food; these are to be avoided.

I now want to put a frame around the text.

This does not work

gmt pstext tmp -R0/3/0/5 -JX3i -h1 -M -N -F+f12,Times-Roman+jLT -W1 > figure.ps

This works:

gmt pstext tmp -R0/3/0/5 -JX3i -h1 -M -N -F+f12,Times-Roman+jLT -W1 -Gwhite > figure.ps

So you have to apply a background color (-G) for -W to work.

Associated revisions

Revision 16351
Added by Paul 12 months ago

Fixed issue #893

History

#1 Updated by Paul about 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release

I can confirm the problem, will work on this after classes...

#2 Updated by Paul 12 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Should be fixed in r16351 [trunk]. I added a new test script based on your example as well to make sure it stays fixed. Thanks for the clear example!

#3 Updated by Paul 10 months ago

  • Status changed from Resolved to Closed

Closed as fixed - reopen if there are other problems related to this.

Also available in: Atom PDF